Chengdu Ebyte Electronic Technology Co.,Ltd.
【
2DI+2AI+2DO
】
MA02-AACX2220 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
40
20
05
00 00
FF 00
XX XX
Device ModBus
address
function code
Register address
Data written
Coil action: conduction
CRC check code
After sending the above command to the device via the 485 bus, the device will return the following values:
20
05
00 00
FF 00
XX XX
Device ModBus
address
function code
Register address
Write value
CRC check code
The DO1 coil is turned on.
7.3.6 Write multiple DO coil states
Use 0F function code to write a single command, for example: set the working mode of DO1 to pulse mode
20
0F
00 00
00 04
01
06
XX XX
Device ModBus
address
function
code
starting
address
Number of coils
Number of
bytes of data
Control coil
data
(bit operation)
CRC check
code
After sending the above command to the device via the 485 bus, the device will return the following values:
20
0F
00 00
OO O4
XX XX
Device ModBus
address
function
code
Register address
Number of coils
CRC check
code
The coils of DO2 and DO3 are turned on.
7.3.7 Read input register
Take the example of collecting the original values of 4 AI channels, use the function code 04 to read the original values
of the 4 AI channels.
20
04
00 00
00 04
XX XX
Device Modbus
address
function
code
initial
address
AI channels number: 4
CRC check code
Содержание MA02-AAC 2220 Series
Страница 1: ...1 2DI 2AI 2DO MA02 AACX2220...