hartmannl - 2022-09-15

Hello,

IΒ΄m new in programming in Codesys. It is possible to add more than one modbus RTU serial device to one COM port?

In project tree I add Modbus_COM_1 and then Modbus serial device. This device has unity ID 1. I need to add next Modbus serial device (at the same COM port) which have unity ID 2.

We have PC software that communicate with slave device thru Modbus RTU. This device measure some parameters such as current, voltage, etc. And this software display this parameters.
For our new project we need display measured data near this slave device. PC software must display the same data. But communication thru modbus RTU allow only one master.

I connect PC software to Raspberry and then connect Raspberry to our slave device. In Raspberry I use two COM port, one is Master to communicate with slave device, and the second port is slave for PC software.
In Raspberry (communication port for PC) I need to create same ammount of connected slave device (virtual) as a connectred to second COM port. It is possible?

Thanks for your help.