Chengdu Ebyte Electronic Technology Co.,Ltd. 【8DO】MA01 -XXCX0080 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
The number of bytes of the
data
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
When the above command is sent to the device via the 485 bus, the device returns the following values:
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.
The number
of bytes
written to
the data
When the above command is sent to the device via the 485 bus, the device returns the following values:
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