MODBUS Communication with CODESYS

CODESYS General configuration

In order to communication with NLii motor using MODBUS RTU interface please add to your codesy project these devices:

codesys_1.jpg

Please use the right baudare speed (do not forget to configure the NLi motor with the NiLAB starter with the baurate of 115200.

codesys_com_port.jpg

Then specify the timeout and the time bewteen telegrams.

codesys_modbus.jpg

Then configure the slave channels, here an example:

codesys_slave.jpg

Example

Project example using Raspberry CODESYS PLC: :nilab_starter:raspberry_plc_pi4_modbus.zip