14-47
14 Serial Communications
CP2E CPU Unit Software User’s Manual(W614)
14-7 Modbus-RTU Slave Function
14
14-7-5 Command and Response Details
Example: Reading 3 words from D1000 to D1002
Command (Modbus-RTU Master) Response (CP2E)
z Write a word in the Data Memory (D) (Write Single Register)
Command (Modbus-RTU Master)
Response (CP2E)
Field name Data Field name Data
Function code 03 Hex Function code 03 Hex
Register starting address
(H)
03 Hex Byte count 06 Hex
Register starting address
(L)
E8 Hex
(D1000~)
Register value (H)
AB Hex
(D1000 H)
Quantity of Registers (H) 00 Hex Register value (L)
12 Hex
(D1000 L)
Quantity of Registers (L) 03Hex (3CH)
(D1000 to D1002)
Register value (H)
56 Hex
(D1001 H)
Register value (L)
78 Hex
(D1001 L)
Register value (H)
97 Hex
(D1002 H)
Register value (L)
13 Hex
(D1002 L)
Field name Data length Data
Function code 1 byte 06 Hex
Register address 2 bytes Eîš…îš…-type: 0 to 0FFF Hex (D0 to D4095)
Sîš…îš…-type: 0 to 1FFF Hex (D0 to D8191)
Nîš…îš…-type: 0 to 3FFF Hex (D0 to D16383)
Register value 2 bytes 0000 to FFFF Hex
Field name Data length Data
Function code 1 byte 06 Hex
Register address 2 bytes Eîš…îš…-type: 0 to 0FFF Hex (D0 to D4095)
Sîš…îš…-type: 0 to 1FFF Hex (D0 to D8191)
Nîš…îš…-type: 0 to 3FFF Hex (D0 to D16383)
Register value 2 bytes 0000 to FFFF Hex
DM
1000
1001
1002
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
AB1 2
5678
9713