installed pyS7
This commit is contained in:
parent
f72b2eca75
commit
248c41b986
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
@ -7,7 +7,7 @@ counter = 0
|
|||||||
while counter < LOOPS:
|
while counter < LOOPS:
|
||||||
try:
|
try:
|
||||||
plc = snap7.client.Client()
|
plc = snap7.client.Client()
|
||||||
plc.connect("172.16.4.220", 0, 1)
|
plc.connect("172.16.3.231", 0, 1)
|
||||||
pprint.pprint(plc.get_cpu_state())
|
pprint.pprint(plc.get_cpu_state())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pprint.pprint(e)
|
pprint.pprint(e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user