HMI app: QModbusTcpClient & QModbusTcpServer on same port?
Unsolved
General and Desktop
-
Hello,
I know this sounds strange, but the application currently is an HMI (client) that is communicating to a machine PLC (server). However, the future requirement is that the HMI can act like a server (slave) so that data can be requested from the HMI by a SCADA system that displays data from several machines.The HMI hardware has one ethernet connection. Modbus TCP communication is on port 502 only. If I instantiate a server and client on the same IP address, I don't believe the Qt classes would be able to differentiate what packets where for the server or client... Am I mistaken? If not, can anyone thing of a workaround... Second process for the slave?
Any thoughts are much appreciated,
Andrei