Chengdu Ebyte Electronic Technology Co.,Ltd.
【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
40
address
code
address
bytes of data
data
(bit operation)
code
After sending the above command to the device via RS232, 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 04 function code 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
The number of AI channels is 4
CRC check code
After sending the above command to the device via RS232, the device will return the following values:
20
04
08
00 00 00 00 00 00 00 00
XX XX
Device Modbus
address
Function
code
Number of
data bytes
Raw value data of 4 AI
channels,Every 2 bytes of data
represents an AI channel data, where
the original value of each channel is
0,0,0,0 respectively
CRC check code
Содержание MA01-A C 4020 Series
Страница 1: ...1 2DI 2AI 4DO MA02 AACX2240 ...