AnyBus® Communicator Protocol Appendix - Modbus
DOC. ABC-APPENDIX-MB Rev.0.91
2001-08-01
6
HMS INDUSTRIAL NETWORKS AB
1.3 Modbus commands
The following tables list all Modbus commands that are supported by the AB-C. For each command there is an expla-
nation about what actions you as user need to take on the query and response.
Code
Name
01
Read Coil Status
02
Read Input Status
03
Read Holding Registers
04
Read Input Registers
05
Force Single Coil
06
Preset Single Register
07
Read Exception Status
11
Fetch Comm. Event Ctr
12
Fetch Comm. Event Log
15
Force Multiple Coils
16
Preset Multiple Registers
17
Report Slave ID
20
Read General Reference
21
Write General Reference
22
Mask Write 4X Register
23
Read/Write 4X Register
24
Read FIFO Queue
Table 3: Modbus Commands
1 Read Coil Status
Query
Starting Address
2 byte value where you enter the first address of the requested coils.
No. of Points
2 byte value where you enter the number of coils to read.
Response Byte Count
1 byte value where you enter the number of expected data bytes.
Data
Data object where you enter the length of the received data and the
destination address.
Table 4: Read Coil Status