Skip to content

unsupported operand type(s) for 'in': 'int' and 'EnumMeta' #337

Answered by swamper123
Abhisraturi asked this question in Q&A
Discussion options

You must be logged in to vote

Typo here:
result = plc.read_area(areas['MK'],0,byte,datatype)

Should be Areas['MK'] not areas['MK'].

Try that. :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@swamper123
Comment options

Answer selected by Abhisraturi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants