Modbus/TCP Master Program

The Modbus/TCP Master program is used to exchange data with TCP Modbus Slave device and is compatible with CM1-EC10A and CM1-EC10B modules.

Registering the Modbus/TCP Master program
Select [File] -> [New Program] -> [MODBUS/TCP Master] menu.

 

image-20240329-083126.png

 

Enter the Program Name, Program ID and Program Free Space (OnlineEdit Buffer).
Click the [OK] button.

Writing the Modbus/TCP Master program
This example shows communication system and frame configurations between CIMON-PLC and TCP Modbus Slave device.

Register the Modbus/TCP Master program that will process the values of PV/SV from the Slave Device to the CIMON-PLC and configure communication parameters of the communication module.

 

image-20240329-083133.png

 

Fill out the Modbus/TCP Master program that configures the value of SV and reads the value of PV from the Slave Device to the CIMON-PLC.
Register a connecting device

 

 

Register a communication block that reads the value of PV

 

 

Register a communication block that controls the value of SV

 

 

Note: If you mark the checkbox "Do not transmit automatically," the you have to use "SEND" command
in the scan program to execute the same communication function.

Complete communication block registration
(Comm. block No. 2 has been registered in order to read the value of SV at all times)

 

 

  1. Download the PLC program and then switch the PLC mode to RUN.