Skip to content

errormessage b'CPU : Item not available' when using get_cpu_info() #353

Closed

Description

@smar2022

Hello,

I allwaysreceive the following errormessage:

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?

Activity

  1. swamper123 commented on Mar 2, 2022

    @swamper123
    Contributor

    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?

  2. smar2022 commented on Mar 2, 2022

    @smar2022
    Author

    Yes, things like reading / writing DB´s worksfine.
    I think the HW settings are correct.

  3. swamper123 commented on Mar 2, 2022

    @swamper123
    Contributor

    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. :)

  4. smar2022 commented on Mar 2, 2022

    @smar2022
    Author

    OK, THX.

  5. Repository owner locked and limited conversation to collaborators on Mar 2, 2022
  6. converted this issue into a discussion #354 on Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions