
Chengdu Ebyte Electronic Technology Co.,Ltd.
【4AI+2DO】 MA02-XACX0420
User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
33
returned 02.
7.3.2 Read hold register
Read one or more register values using 03Function code, for example, read DO1 working mode.
20
03
05 78
00 01
XX XX
Modbus
address of the
device
Function code
Register initial
address
The number of
registers read
CRC CHECK
CODE
After sending the above command to the device via RS232, the device will return the following
values:
20
02
02
00 00
XX XX
Modbus
address of the
device
Function code
The number of
bytes of data
Returned data
CRC CHECK
CODE
The above 00 00 indicates that DO1 is the level mode.
7.3.3 Write a single hold register
Write a single hold register using 06Function code, e.g., set DO1 to pulse mode
用
06Function code.
20
06
05 78
00 01
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
06
05 78
00 01
XX XX
Modbus
address of the
device
Function
code
Register address
Writes Value
CRC CHECK
CODE
If the change succeeds, the data in register 0x0578 is 0x0001.
7.3.4 Write multiple hold registers
Use 10Function code to write multiple register holding commands, e.g., set do1-DO4 working mode
simultaneously.
Содержание M02-XACX0420
Страница 1: ... 4AI 2DO MA02 XACX0420 ...