
Chengdu Ebyte Electronic Technology Co., Ltd.
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
19
This function of the master mode enables device cascading functions and data transfer between the 485 bus and the
network.
4.2 IO Basic function
4.2.1 Switch quantity DO Output
DO Output of Read Switch quantity
Function code: 01, read coil status
Address range: 00017 (0x0010) ~00022 (0x0015)
Explanation: When equipment relay passive output and coil is not powered on, relay NC port and COM port are
usually closed, NO port and COM port are often open, with a value of 0; when coil is energized, the phenomenon is
opposite, relay NC port and COM port are disconnected, NO port and COM port are closed, with a value of 1. Query
relay status by instruction.
Example:
Read the output state of six switches, assuming that the return value is 03, corresponding to the binary bit 0000 0011,
low six bits represent the output state of the switch quantity, in turn, DO6, DO5, DO4, DO3, DO2, DO1.
Modbus RTU Protocol Reads Switch quantity Output
:
Send
01
01
00 10
00 06
BD CD
Device ModBus
address
function
code
Switch switch
quantity start address
Read switch switch
quantity number
CRC check code
Receive
01
01
01
03
11 89