unsupported operand type(s) for 'in': 'int' and 'EnumMeta' #337
-
hello , def WriteMemory(plc, byte, bit, datatype, value): #define write memory function IP = '192.168.0.1' #IP plc plc = snap7.client.Client() #call snap7 client function state = plc.get_cpu_state() #read plc state run/stop/error
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Typo here: Should be Try that. :) |
Beta Was this translation helpful? Give feedback.
Typo here:
result = plc.read_area(areas['MK'],0,byte,datatype)
Should be
Areas['MK']
notareas['MK']
.Try that. :)