![Ebyte MA02-XXCX0080 Скачать руководство пользователя страница 32](http://html.mh-extra.com/html/ebyte/ma02-xxcx0080/ma02-xxcx0080_user-manual_530424032.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
【
8DO
】
MA02-XXCX0080 User Manual
Copyright ©2012–2021
,Chengdu Ebyte Electronic Technology Co.,Ltd.
第
32
页
address
address
If the modification is successful,If the modification is successful If the modification is successful
7.2.5 Write a single DO coil state
Use the 05 command to write a single command, for example: set the DO1 working mode to pulse
mode
20
05
00 00
FF 00
XX XX
Device
Modbus
address
FC
Register start address
Write to the value
Coil action: on
CRC checkcode
After sending the above command to the device via RS232, the device returns the following values:
:
20
05
00 00
FF 00
XX XX
Device
Modbus
address
FC
Register start address
Write to the value
CRC checkcode
DO1 coil guide on.
7.2.6 Write about the multiple DO coil states
Use the 0F function code to write individual commands,For example, set the working mode of the
DO1 to the pulse mode
20
0F
00 00
00 04
01
06
XX XX
Device
Modbus
address
FC
] start
address
Number of
coils
Bytes of
the data
Data for
controlling
the coil
(bit
operation)
CRC
checkcode
After sending the above command to the device via RS232, the device returns the following values
:
20
0F
00 00
OO O4
XX XX
Device
Modbus
address
FC
Register start address
DO3 coil guide on
CRC
checkcode
DO2,DO3 coil guide on.