snap to connect plc s7-1200 and read data #341
Unanswered
gzy354293185
asked this question in
Q&A
Replies: 2 comments 5 replies
-
connect is success, just read data error |
Beta Was this translation helpful? Give feedback.
4 replies
-
Sry, line 21 in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to use s7-1200plc to read data, this is my code
and this is Error message
b'CPU : Function not available'
Traceback (most recent call last):
File "E:\Holecount\plctest.py", line 21, in
plc.write_area(snap7.types.Areas.MK, 0, 2, a)
File "E:\anaconda\envs\hole\lib\site-packages\snap7\client.py", line 26, in f
check_error(code, context="client")
File "E:\anaconda\envs\hole\lib\site-packages\snap7\common.py", line 92, in check_error
raise Snap7Exception(error)
snap7.exceptions.Snap7Exception: b'CPU : Function not available'
Beta Was this translation helpful? Give feedback.
All reactions