CTH200 Series PLC User Manual
When CTH200 PLC serve as Modbus TCP master to communicate with other slaves, you need
to use Modbus TCP Wizard or Ct_Mbus_master_tcp_single library to configure the master
communication.
Please refer to “MaigcWorks PLC user Manual” for how to use the Modbus TCP Wizard and
Ct_Mbus_master_tcp_single library. The related Manuals and Library files can be downloaded
from http://www.co-trust.com/.
6.2.1 Components
Table 6-6 Example components
Installed with MagicWorks PLC (V2.08 and above), used for CTH200 PLC
configuration, programming and debugging.
Two CTH200 PLC, one for Modbus_TCP master, the other for Modbus_TCP
slave, they communicate with each other via EtherNET port.
·connect CTH200 PLC and Program device
·connect PLC (Modbus_TCP master) and PLC (Modbus_TCP slave)
6.2.2 Network Connection
Connect Program device with CTH200 PLC by standard network cable, then use the
CT_Modbus_TCP library from COTRUST to program the Modbus master (CTH200):
Q0
Q1
I0 I1 I2
.0 . 1 . 2 . 3 .4 .5 . 6 . 7
.0 . 1 . 2 . 3 .4 .5 . 6 . 7
.0 . 1 . 2 . 3 .4 .5 . 6 . 7
. 0 . 1 . 2 . 3 .4 . 5 . 6 . 7 .0 . 1 . 2 . 3 .4 .5 . 6 . 7
Connect Modbus_TCP master with slave by standard network cable, the master will write and
then read data from specified address to the slave to realize the Modbus TCP communication:
Q0 Q0Q1 Q1
I 0 I0I1 I1I2 I2
.0 . 1 . 2 . 3 .4 . 5 . 6 . 7 .0 .1 . 2 . 3 .4 . 5 . 6 . 7
. 0 . 1 . 2 . 3 .4 . 5 . 6 . 7 .0 . 1 . 2 .3 .4 .5 . 6 . 7. 0 . 1 . 2 .3 .4 .5 . 6 . 7 .0 . 1 . 2 . 3 .4 . 5 . 6 . 7
. 0 . 1 . 2 . 3 .4 . 5 . 6 . 7 . 0 . 1 .2 . 3 .4 . 5 . 6 . 7. 0 . 1 . 2 . 3 .4 . 5 . 6 . 7 .0 . 1 . 2 . 3 . 4 .5 . 6 .7
CPU H224X/H226XL/H228XL not support adaptive crossover, thus the PLC should use
Crossover Cable to implement ModBus_TCP.