You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
errormessage b'CPU : Item not available' when using get_cpu_info() #353
b'CPU : Item not available'
Traceback (most recent call last):
File "C:\Users\smar\Python\Projects\CMAD\firsttry.py", line 169, in
main()
File "C:\Users\smar\Python\Projects\CMAD\firsttry.py", line 126, in main
info = s7.get_cpu_info()
File "C:\Users\smar\AppData\Roaming\Python\Python310\site-packages\snap7\client.py", line 161, in get_cpu_info
check_error(result, context="client")
File "C:\Users\smar\AppData\Roaming\Python\Python310\site-packages\snap7\common.py", line 92, in check_error
raise Snap7Exception(error)
snap7.exceptions.Snap7Exception: b'CPU : Item not available'
when using the get_cpu_info function. All settings are right (RACK = 0, SLOT = 1, Put/Get access allowed, etc.)
I use a S7 1200 FW 4.2 and TIA Portal V17
Can anyone help?
Just see #323 had a similar Problem (and I haven't answered 😅 ).
What I know is, that the 1200 and 1500 are not supporting all features.
I am sorry, but atm I haven't got a device on hand to verify this.
Since this doesn't seem to be an Python issue, you may ask at the snap7 directly.. Davide is very helpfull and just use his great work as a python-wrapper. :)
Activity
swamper123 commentedon Mar 2, 2022
Since you receive a legit error from the CPU, it may be the Firmware or a HW config still not set well...
Normal stuff like reading variables works?
smar2022 commentedon Mar 2, 2022
Yes, things like reading / writing DB´s worksfine.
I think the HW settings are correct.
swamper123 commentedon Mar 2, 2022
Just see #323 had a similar Problem (and I haven't answered 😅 ).
What I know is, that the 1200 and 1500 are not supporting all features.
I am sorry, but atm I haven't got a device on hand to verify this.
Since this doesn't seem to be an Python issue, you may ask at the snap7 directly.. Davide is very helpfull and just use his great work as a python-wrapper. :)
smar2022 commentedon Mar 2, 2022
OK, THX.