(0)| 8/30/2022 6:45 AM | |
|
Joined: 1/21/2013 Last visit: 1/20/2026 Posts: 4416 Rating:
|
Hi Dennis Dutchman, I am not sure how to understand your question. Because with "LOpenUserComm" you are able to receive during sending. But it would never be possible, to receive the response on the just sent message within the same PLC cycle. If you are only asking because of using TIA V17 while the library is only provided as V15 or V16 than the solution might be an update which would be done when opening the library in V17. Or, as a recommended alternative, you can just use LCom. Kind regards |
| 5/16/2023 1:40 PM | |
|
Joined: 5/26/2016 Last visit: 11/25/2025 Posts: 11 Rating:
|
The LopenUserComm function has a state machine which take multiple OB1 cycles to achieve sends and receives. Messages are missed and buffers get full when trying to adapt programs which worked in Step7 for S7-300 and S7-400 CPUs.... |
| 11/6/2023 12:33 PM | |
|
Joined: 9/10/2020 Last visit: 7/16/2025 Posts: 1 Rating:
|
Hello, I had the same issue(s), maybe this will help someone. If you want to use the templates provided by Siemens, there seem to be multiple function blocks for TCP-based Open User Communication published by Siemens. This is the one Dennis Dutchman mentioned: https://support.industry.siemens.com/cs/de/en/view/109747710 From my understanding the function block in this library has separate states for receiving and sending, so receiving and sending is processed sequentially. I also had the problem that sometimes I would lose telegrams. So I had to adjust the state machine. The problem I saw with this version is, that outside of the state machine (CASE statement) the "send request" will just force the state machine from any state into the "Sending" State, so it could theoretically occur that a "New Data Received" is lost. ----------------------------------------------------------------------------------------------------------------------------- Alternative 1: I would personally recommend using LCom from this library as it is more advanced, still gets updated and has more functionalities (e.g. more diagnostics, advanced protocol etc.) https://support.industry.siemens.com/cs/de/en/view/109780503 Alternative 2: You can also find a Master copy in this library called "TcpTemplate". Here it was actually realized in a way that receiving and sending is processed simultaneously, it is even mentioned in a comment in the code, but I have not tested it myself yet. Good Luck! |
Last edited by: Jen_Moderator at: 11/07/2023 06:24:21Links optimized. |
|
This contribution was helpful to
|
|
Follow us on