Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-05-31 07:34 AM
Hi all,
I have a HMIGTO2310. Currently this is connected to a M251 PLC via Modbus TCP and there's an RTU device (it's a PCB board) connected to the HMI via Modbus RS485) to monitor and control our rig. Then, connected to the PLC is the Control Centre (CC) via Modbus TCP looking at all the data from all the systems.
I would therefore say the CC is the Master/Client, and the PLC+HMI+PCB are all Slaves/Servers.
We have another two rigs and have been asked if we can supply two variants of this:
A few questions:
Cheers in advance ππ»
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-05-31 10:47 PM
@Yelper85 my initial answers to your questions:
Overall it seems that both setups should be feasible, but I think we need clarification about the communication paradigm in your existing setup. Or possibly an explanation of why you need alternative setups? This sounds like an xy problem in that you're really trying to solve something else, but asking about it in an indirect way.
You've stated that "I would therefore say the CC is the Master/Client, and the PLC+HMI+PCB are all
Slaves/Servers" but also that that the PLC is connected to the HMI and CC via modbus tcp, the HMI is connected to the PCB by (modbus rtu?) via serial. The master/slave (client/server) relationship really only matters for the the serial connection, and it seems to me that some part of your communication scheme is missing from this description.
I think you should reframe your system description in terms of reading and writing: i.e. the HMI reads holding registers in the RTU PCB and then writes them to the PLC. The HMI and CC both read and write other holding registers in the PLC. That example assumes all modbus communication, but maybe your PCB uses ASCII? And I'm not sure how global variables are shared between the HMI and PLC.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-06-05 01:30 AM
Hi @Bosswaffle,
Many thanks for replying, much appreciated.
The alternative setups have been requested by the customer as the one of the rigs doesn't require remote monitoring, but the other does yet has no PLC connection, or at least this is how they want to run if possible, hence the questions. I can see how you may think I was asking an alternative question in an indirect way, but honestly I wasn't π
I should point out that I'm by no means an expert on this, indeed I'm picking this project up from somebody else and learning on the fly at a rapid rate, so I'm happy to be corrected and taught any valuable lessons as that's the only way to improve, plus I don't want to be spouting incorrect information to the customer!
That's interesting about the HMIs as I didn't realise they lack any internal registers. Knowing that, if the CC wants to read data from the HMI, how can this be done without the PLC as an intermediate device if no holding registers exist?
Yes, in both setups the HMI connection to the PCB doesn't change, so as you say from the HMI perspective it's a Master/Client to the PCB which is a Slave/Server, it's that understanding of how the view changes when you add more devices like the PLC and CC, and if this perspective changes depending on where they are placed in the system. I was under the impression that with Modbus there's only ever one Master/Client, and the rest of the devices are Slaves/Servers and that's the only way it will work, but you've said that this really only applies to RTU connections and not TCP which is interesting.
As for connecting the CC to the PCB directly, there's only one port, and that's the RS485 to HMI connection (via RJ45 plug), so physically it can't be connected, but if I'm reading your description correctly this may be achievable if the PCB is connected to a gateway/server to allow multiple connections.
Like you, I've only used GTO HMIs with Vijeo Designer, so we should be able to agree on a viable solution hopefully.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-06-06 10:59 AM
I sounds like you need to add the intermediate Modbus gateway so that your CC and HMI can both directly query the PCB for it's information. They would both likely be asking for the same registers or writing to the same registers.
A Modbus gateway with at least one ethernet port and serial ports would seem to be the best fit for you:
I'm partial to Moxa's MGate line up for this purpose, but lots of other companies make an equivalent product: MGate MB3180/MB3280/MB3480 Series - Modbus TCP Gateways | MOXA
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-06-13 01:45 AM
So can two or more devices not read/write to the same registers, it's purely 1-2-1?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-06-16 01:26 PM
It depends on the communication medium. In general, multiple devices can read/write to the same registers if they can connect to the PLC/PCB/Devie/Slave/Server.
Why 'if'?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: β2024-06-21 12:42 AM
Hi @Bosswaffle,
Apologies for the late reply, I've been snowed under with work and this dropped off my radar.
Really appreciate that information, very helpful. I'm going to have a read up on the Moxa MGate you mentioned and draw out some solutions as a picture tells a thousand words π
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.