Chengdu Ebyte Electronic Technology Co.,Ltd.
【4AI+2DO】 MA02-XACX0420
User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
34
20
10
05 78
00 04
08
0001 0002 0003
0004
XX XX
Modbus
address of
the device
Functio
n code
寄存器
initial
address
Register
quantity
Write The
number of
bytes of data
Written data
CRC
CHECK
CODE
After sending the above command to the device via RS232, the device will return the following
values
:
20
10
0578
00 04
XX XX
Modbus
address of the
device
Function
code
Register address
Register quantity
CRC CHECK
CODE
If the initial address is 0x0578, the values of the four registers are 0x0001, 0x0002, 0x0003, and
0x0000 respectively.
7.3.5 Write a single DO coil state
Use the 06 command to write a single command, for example, set DO1 to pulse mode.
20
05
00 00
FF 00
XX XX
Modbus
address of the
device
Function
code
Register address
Writes Value
线圈动作:导通
CRC CHECK
CODE
After sending the above command to the device via RS232, the device will return the following
values:
20
05
00 00
FF 00
XX XX
Modbus
address of the
device
Function
code
Register address
Writes Value
CRC CHECK
CODE
DO1 coil is on.
7.3.6 Write multiple DO coil states
Use 06Function code to write a single command, e.g., set DO1 to pulse mode.
20
0F
00 00
00 04
01
06
XX XX
Modbus
address of the
device
Functio
n code
initial
address
coil number
The
number of
bytes of
data
控制线圈的
数据
(bit
操
作
)
CRC
CHECK
CODE
Summary of Contents for M02-XACX0420
Page 1: ... 4AI 2DO MA02 XACX0420 ...