14 Serial Communications
14-48
CP2E CPU Unit Software User’s Manual(W614)
Example: Writing 3AC5 Hex to D2000
Command (Modbus-RTU Master) Response (CP2E)
z Write Multiple Bits in the Auxiliary Area (W) (Write Multiple Coils)
Command (Modbus-RTU Master)
Response (CP2E)
Field name Data Field name Data
Function code 06 Hex Function code 06 Hex
Register address (H) 07 Hex Register address (H) 07 Hex
Register address (L) D0 Hex
(D2000)
Register address (L) D0 Hex
Register value (H)
3A Hex Register value (H) 3A Hex
(D1000 H)
Register value (L)
C5 Hex Register value (L) C5 Hex
(D1000 L)
Field name Data length Data
Function code 1 byte 0F Hex
Starting address 2 bytes 0 to 07FF Hex (0 to 2047)
W0.00 to W127.15
Quantity of output 2 bytes 0001 to 07B0 Hex (1 to 1968)
Byte count 1 byte N = Quantity of output / 8, if the remainder is not 0, N+1
Output value N bytes
Field name Data length Data
Function code 1 byte 0F Hex
Starting address 2 bytes 0 to 07FF Hex (0 to 2047)
W0.00 to W127.15
Quantity of output 2 bytes 0001 to 07B0 Hex (1 to 1968)
DM
2000
2001
2002
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
3AC5