13.3 MODBUS
13.3.1 What is Modbus TCP?
The GM1 controller can communicate with HMI and controllers via the Modbus protocol. Master
communication or slave communication can be performed by adding a master or slave device
for Modbus to the project file.
13.3.2 Modbus-TCP Master Communication
The Modbus-TCP master function can be used to send commands to slave devices in the
following two ways.
1) When device object settings are used
●
Transmission method based on slave initialization
● Transmission method
• Cyclic
• Rising edge
• Application (ModbusChannel function block)
2) When device object settings are not used
● A method by which a user program (ModbusRequest function block) generates and sends
commands
● For details on how to use ModbusRequest, refer to the GM1 Series Reference Manual
(Instruction).
The method in 1) is explained below
.
1. Right-click the
"LANPort1" object in the navigator pane and then select Add Device from the
context-sensitive menu that is displayed.
The "Add Device" dialog box will be displayed.
13.3 MODBUS
13-24 WUME-GM1RTXOP-01