Can anyone help me with some examples to communicate modbus tcp between two PLCs? Thank you very much
take a look a node-red-contrib-modbus by Klaus Landorf aka biancode.
Basically you need to know from your plc:
- ip address
- modbus port (usually 502, but I imagine you can set it up in TIA Portal when you configure the Modbus TCP function block)
- registers address you want to read/write
You don't provide any context for your situation, but I guess Node-RED would be the client polling registers from your PLCs (which are servers). Each plc has its own IP address and than it's pretty much the same setup for all the plcs (Siemens official documentation is all you need). In this scenario a plc doesn't communicate with the other.
Be careful about what you're doing, especially with production machines..
Thanks so much ! i will try it