Menu

Problems with "set_session_password" function

2018-04-11
2021-06-16
  • Mikel Garmendia

    Mikel Garmendia - 2018-04-11

    Hi,
    I'm running snap7 with the Siemens S7-1200 and it's working fine.
    But now I want to use the function "set_session_password" and I'm getting this error:

    No handlers could be found for logger "snap7.common"
    Traceback (most recent call last):
      File "1200_sheeter.py", line 10, in <module>
        plc.set_session_password("mikelmik")
      File "/usr/local/lib/python2.7/dist-packages/snap7/client.py", line 25, in f
        check_error(code, context="client")
      File "/usr/local/lib/python2.7/dist-packages/snap7/common.py", line 66, in check_error
        raise Snap7Exception(error)
    snap7.snap7exceptions.Snap7Exception: CPU : Function not available
    

    The function I am using like:

    snap7.client.Client().set_session_password("mikelmik")
    

    Regards,

     
  • Lunsheng Wang

    Lunsheng Wang - 2021-06-16

    @davenardella, I am also observing the same error with my S7-1200. As your indication, it is because S7-1200 uses a modified S7 protocol, so, my question is: Does the Snap7 library support this modified S7 protocol now?

     

Log in to post a comment.

MongoDB Logo MongoDB