4/23/2025 6:00 AM | |
Joined: 3/30/2020 Last visit: 9/12/2025 Posts: 5446 Rating:
|
I have no answer for you over why the establishment of communication should be as complicated as it is. You will need to confront a knowledgeable person at Siemens. Have a look at the following library collection.. Mixing Modbus/TCP with other communication protocols on one physical port is not a problem. We have changed over from Put/Get to Ethernet TCP for our communication needs. I appreciate the fact that we are able to connect and disconnect the link and reuse resources. Though our networking is not as complicated as yours. |
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. |
|
4/23/2025 7:17 AM | |
Joined: 2/11/2015 Last visit: 9/9/2025 Posts: 512 Rating:
|
Hi alanTI, If the PLC is quite newer, you could try an OPC UA communication. A SIEMENS Example: https://support.industry.siemens.com/cs/us/en/view/109762770 |
Last edited by: Moderator_Lan at: 04/23/2025 08:38:39link optimized |
|
4/23/2025 5:21 PM | |
Joined: 7/5/2021 Last visit: 9/11/2025 Posts: 221 Rating:
|
In the field of water management it is becoming essential, as reservoirs are often kilometers apart. the need of communication can in most cases be reduced to 2 bool "need water" and "heartbeat". Back in the old days it was all buried cables with discrete signals, but this was not very thunderstorm resistant. then came bus cables, more flexible than discrete and slightly more thunderstorm resistant, since it is easy to decouple the wires. Then came fiber, but if you are not creating new pipes it is prohibitively expensive to make a brand new buried line. These days, unless it is a critical infrastructure, we just use mobile network, because we need remote supervision anyways, might as well use the link to communicate. As for the "directly" part, in my opinion it comes down to k.i.s.s. I do not want some cloud or scada connecting the remote stations.
I do already use this library, just never bothered to look at all the instructions, looks like LCom is flexible enough and not too much of a problem to implement.
if I use modbus TCP with third party PLC and RTUs it always works flawlessly. if it is all siemens S7 stuff there are some bugs after downloads and connectivity disruptions. It works but I wouldn't trust my life on it. Something with tcp connection not closing properly.
@qwazee may I ask what implementation of tcp communication? Custom function using basic blocks, tsend_c/trcv_c, LCom or something else?
I have already looked into it, it looks like the future will go in this direction, but for today I cannot implement it between 2 1200s. Also I dislike doing things in hardware configurations, I feel like I depend too much from Siemens. If I code something completely in SCL there is a high likelihood that I will be able to replicate it in any other PLC. Thank you all for your interest and suggestions! |
4/24/2025 3:56 PM | |
Joined: 7/7/2010 Last visit: 9/12/2025 Posts: 16094 Rating:
|
Might I recommend using UDP rather than TCP for point-to-point communications. Provided there is no hardware in between that can absorb and not forward the UDP packets, you can be very successful. UDP will blindly send forever even when nothing is receiving. Never get TCP connection failures. Just create your own "protocol" for ensuring both ends are online and communicating. Things like watchdog sending and monitoring on both ends, and how you need to handle a persistent watchdog failure - like sending an email or text message or whatever might be appropriate. Or, if you have lots of these remote stations, have them all coordinate through a single centralized PLC that has human visibility - like an HMI or Web page showing what remote stations are online, when the last transmission was received, that sort of thing, and perhaps background color Green - watchdog working for that remote device, Yellow for intermittent watchdog, and Red for persistent Watchdog. All kinds of ways to get fancy with it, but keeping stats inside each PLC that also gets sent to each remote station it connects to, so it gets shared for better visibility. The more visible things like reaction time from yellow / red to green - indicating someone noticed, then took action and corrected the problem, the better your uptime will be and the easier it will be to keep working smoothly. It is amazing how small details like that can impact the workplace attitude and actions. Some peer pressure, some appreciation for being informed, some management pressure (to keep metrics or KPIs good), and some just the desire to do a good job, and probably a few other outside influences I don't think of. Once worked in a factory where bonuses were awarded based on some KPIs (stats produced by the PLCs). People started asking for improvements in communicating state changes on the factory equipment. We added speakers, amplifiers, text-to-speed generated messages played over the local area speakers letting people know a specific machine just went down, or something similar. Paid for itself in 2 months.
|
science guy |
|
This contribution was helpful to
2 thankful Users |
Follow us on