8/5/2020 1:58 PM | |
Joined: 3/30/2020 Last visit: 8/19/2024 Posts: 4698 Rating:
|
Hello. How does your PLC program look like? Attached is a working Python program. It is an active client linking to a passive server (PLC). The client sends out a message and the PLC needs to give a response. I trust you can extract from the working Python code what you need. BR Attachmenttcp-client-to-PLC.py.txt (1550 Downloads) |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
3 thankful Users |
8/6/2020 8:43 AM | |
Posts: 3 Rating:
|
THANK YOU, that was the reasn why i coudnt make the connection ! |
This contribution was helpful to
1 thankful Users |
1/31/2022 6:22 PM | |
Joined: 3/30/2020 Last visit: 8/19/2024 Posts: 4698 Rating:
|
Hello. Any specific reason why you are pulsing the make-a-connection instruction? Consider saving the status of the block if an error occurs. The error bit is active only for one scan. Deeper analysis might be possible if you share some PLC code and Python code. I assume you are using actual hardware and not a simulation. It may be helpful to look into the TCP template that is available from this Siemens provided library: ~ |
Last edited by: qwazee at: 01/31/2022 18:24:29Last edited by: qwazee at: 01/31/2022 18:25:20Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
Follow us on