تماشای ویدئو Arduino Modbus RTU Slave Example از آی-ویدئو
Control an Arduino Uno I/O with a PLC using Modbus RTU (Modbusino library). In this case, I use a WAGO PFC200 as the Modbus RTU Master, using the easy new configurator in Codesys.
https://github.com/stephane/modbusino