
Chapter 6 Communication Parameter
6-29
Correspondent client device shall request within the range described in the table below.
For example, bit Read request is available up to 2000 bits, and bit Write request is available up to 1968 bits
(using Modbus RTU).
Code (Hex)
Purpose
Used area
Address
Max. Response data
01
Read Coil Status
BIT OUTPUT
0XXXX
2000 COILS
02
Read Input Status
BIT INPUT
1XXXX
2000 COILS
03
Read Holding Registers
WORD OUTPUT
4XXXX
125 REGISTERS
04
Read Input Registers
WORD INPUT
3XXXX
125 REGISTERS
05
Force Single Coil
BIT OUTPUT
0XXXX
1 COIL
06
Preset Single Register
WORD OUTPUT
4XXXX
1 REGISTER
0F
Force Multiple Coils
BIT OUTPUT
0XXXX
1968 COILS
10
Preset Multiple Registers
WORD OUTPUT
4XXXX
120 REGISTERS
[Table 6.6.1] Modbus command code
For the request of each instruction code, applicable area shall be set for XGT PLC memory.
It is available through “Modbus Setting” window as shown in the figure below which is displayed if “Setting” button clicked
after active with Modbus ASCII server/RTU server selected on the “Modbus setting of Cnet operation mode” window.
[Figure 6.6.2] Modbus server memory setting
Details of respective setting item are as follows;
Item
Description
Remarks
DI area address
XGT address applicable to digital input area
Bit address
DO area address
XGT address applicable to digital output area
Bit address
AI area address
XGT address applicable to analog input area
Word address
AO area address
XGT address applicable to analog output area
Word address
[Table 6.6.2] Details of Modbus Area
The address value set in the respective item is the base address of the applicable area.
In the [Figure 6.6.2], start address of bit read area is assigned at the first bit of M0000 word. Start address of word
Summary of Contents for XGL-C22A
Page 172: ...Chapter 8 Modbus Communication 8 23 ...
Page 246: ...Chapter 10 Program Examples 10 40 XG 5000 program Sequence Program 1 2 3 4 ...
Page 247: ...Chapter 10 Program Examples 10 41 Sequence Program 5 6 ...
Page 289: ...Appendix A 23 Sub procedure module When port open event occurs perform the next module ...
Page 291: ...Appendix A 25 The lower code shows BCC check setting ...