14 Serial Communications
14-50
CP2E CPU Unit Software User’s Manual(W614)
Example: Writing 3AC5, 9713 Hex to 2 Words, D1000 and D1001
Command (Modbus-RTU Master) Response (CP2E)
z Error Response
Field name Data Field name Data
Function code 10 Hex Function code 10 Hex
Starting address (H) 03 Hex Starting address (H) 03 Hex
Starting address (L) E8 Hex
(D1000~)
Starting address (L) E8 Hex
Quantity of registers (H) 00 HEX Quantity of registers (H) 00 Hex
Quantity of registers (L) 02 Hex
(2CH)
Quantity of registers (L) 02 Hex
Byte count 04 Hex
Registers value (H)
3A Hex
Registers value (L)
C5 Hex
Registers value (H)
97 Hex
Registers value (L)
13 Hex
Field name Data length Data
Function code 1 byte Function code + 80 Hex
For example: 86 Hex for Write Single Register (06Hex)
Exception code 1 byte Reference below
Error code Field name Description
01 Hex Illegal function code • An unsupported function code is specified
02 Hex Illegal data address • There is an error in the specified start address
• The specified start address and Data length exceed the
valid range
03 Hex Illegal data value • Data number does not match data length
DM 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1000 3
9
A
7
C
1
5
3
1001