11: Modbus
XPort Pro User Guide
95
Table 11-3
Modbus Local Slave Functions - Response
Force Single Coil
0x05
0x00
0x00-0x02
Output CP
CP1 – CP3
0xff (set CPx
to 1) or
0x00 (set CPx
to 0)
0x00
N/A
N/A
Preset Single
Register
0x06
0x00
0x00-0x02
CP1 – CP3
0x00
0x00 or 0x01
N/A
N/A
Force Multiple
Coils
0x0F
0x00
0x00-0x02
Starting CP
CP1 – CP3
0x00
0x01-0x03
No of CPs to
set
0x01
0B00000xyz
CP values ,Lo
CP# in low bit
Preset Multiple
Registers
0x10
0x00
0x00-0x02
Starting CP
CP1 – CP3
0x00
0x01-0x03
No of CPs to
set
0x02-0x06
(No of CPs
to set) * 2
Max [6]..
0x00, 0x0Y
0x00 ,0x0Y
0x00, 0x0Y
Y = 0 or 1
Read/Write 4X
Registers
0x17
0x00
0x00-0x02
Starting CP
CP1 – CP3 to
read
0x00
0x01-0x03
Quantity to
read
0x00
0x00-0x02
Starting CP
CP1 – CP3 to
write
0x00
0x01-0x03
Quantity to
write
0x02-0x06
(Quantity to
write) * 2
Max [6]..
0x00, 0x0Y
0x00 ,0x0Y
0x00, 0x0Y
Y = 0 or 1
Name
Number
Byte
Count
Data [0]
Data [1]
Data
[2]
Data [3]
Data
[4]
Data [5]
Read
Coils
0x01
0x01
0B00000xyz
CP output
values ,Lo CP#
in high bit
N/A
N/A
N/A
N/A
N/A
Read
Input
status
0x02
0x01
0B00000xyz
CP output
values ,Lo CP#
in high bit
N/A
N/A
N/A
N/A
N/A
Read
Holding
Registers
0x03
0x02-0x06
0x00
Starting CP
Value
0x00 or 0x01
0x00
Next CP or
End CP value
0x00 or 0x01
0x00
End CP value
0x00 or 0x01
Read
Input
Registers
0x04
0x02-0x06
0x00
Starting CP
Value
0x00 or 0x01
0x00
Next CP or
End CP value
0x00 or 0x01
0x00
End CP value
0x00 or 0x01
Force
Single
Cell
0x05
Echo query
Echo query
Echo query
Echo
query
N/A
N/A
N/A
Preset
Single
Register
0x06
Echo query
Echo query
Echo query
Echo
query
N/A
N/A
N/A
Name
Number Address
Hi [0]
Address
Lo [1]
Data Hi
[2]
Data Lo
[3]
Bytes
Count [4]
Value [5]