4-9
IM 04L51B01-01EN
Using Modbus Functions (Communicating with Modbus devices)
4
4.4 UsingModbustoEnabletheGX/GPtoRead
Data from and Write Data to Other Devices
(Modbusmasterfunction)
The GX/GP can operate as a Modbus master device.
The GX/GP can connect to another device (Modbus slave device) via Modbus and
read from and write to the device’s internal registers. Read data can be handled using
communication channels. Data that can be written are I/O channel data, math channel data,
and communication channel data.
Modbus slave device
Modbus master
Serial communication
GX/GP
Command
Input register
Hold register
Read
Write
Read
3XXXXX
4XXXXX
Write
Read
Read
Slave device internal register
GX/GP
4.4.1 Setting Serial Communication Conditions
Description
• Configurethereceiverfunction
• Setdatatransferconditions
For details on the settings, see page 1-198 in section 1.22.1, “Setting Basic Communication
Conditions”.
4.4.2 Configuring the Modbus Master Function
Description
• Enablethemasterfunction
• Setcommunicationconditions
• Settherecoveryaction
For details on the settings, see page 1-200 in section 1.22.2, “Enabling or Disabling the
Modbus Master Function (/MC option) and Setting Communication Conditions”.
For details on the Modbus functions and registers that the GX/GP supports, see page 4-11 in
section 4.5, “Modbus Function and Register Assignments”.
4.4.3 Setting Commands
Description
• Setthemastercommandnumber
• Setthecommand
For details on the settings, see page 1-201 in section 1.22.3, “Setting Modbus Master
Transmission Commands”.
For command setting examples, see page 4-4 in section 4.2.4, “Setting Commands”.