Chengdu Ebyte Electronic Technology Co.,Ltd.
【
8DO
】
MA01 -XXCX0080 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
32
Device Modbus
address
The function
code
The number of bytes of the
data
The data returned
CRC check code
The above 00 00 indicates that DO1 is level mode.
7.2.3 Write a single hold register
Write a single hold register using the 06 function code, for example, set the operating mode of DO1 to pulse mode
20
06
05 78
00 01
XX XX
Device Modbus
address
The function
code
Register address
Write the value
CRC check code
When the above command is sent to the device via the 485 bus, the device returns the following values:
20
06
05 78
00 01
XX XX
Device Modbus
address
The function
code
Register address
Write the value
CRC check code
If the modification is successful, the 0x0578 register data is 0x0001.
7.2.4 Write multiple hold registers
Write multiple hold register commands using 10 function codes, for example, set the do1-DO4 operating mode at the
sametime.
20
10
05 78
00 04
08
0001 0002
XX XX
Device Modbus
address
The function
code
Register
start address
The number
of registers
The number
of bytes
written to
the data
The data
written
CRC check
code
When the above command is sent to the device via the 485 bus, the device returns the following values:
20
10
05 78
00 04
XX XX
Device Modbus
address
The function
code
Register
address
The number of registers
CRC check
code
If the modification is successful, the values of thefour consecutive registers with 0x 0578 as the starting address are 0
x0001, 0x0002, 0x0003, 0x0000.
7.2.5 Write a single DO coil status
Use the 05 command to write a single command, for example, to set do1 to pulse mode
Содержание 8DO
Страница 1: ...1 8DO MA01 XXCX0080...