Replies: 1 comment
-
Hi Marco, No guaranty that this will work, but otherwise you may have to look for another library. |
Beta Was this translation helpful? Give feedback.
0 replies
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 am trying to connect to S7-200.
I have the following snippet in python (using python-snap7 1.2 stable.
self.plc = snap7.client.Client() #create instance of client
self.plc.set_connection_params(ip, localtsap, remotetsap) #setup connection parameters
self.plc.connect() #try and connect
My problem is with the connect, it calls for using a ip address, slot and rack parameters which do not apply to the S7-200.
My question is how to connect to a device using the set_connection_params() method and not have the connect call require the restating of different connection parameters. I have not been able to find a connect option that would not take any parameters and use the info from the set_connection_params() call.
Marco
Beta Was this translation helpful? Give feedback.
All reactions