Read Input Register - Ebyte MA02-AAC 2240 Series User Manual

2di + 2ai + 4do
Hide thumbs Also See for MA02-AAC 2240 Series:
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co.,Ltd.
address
code
After sending the above command to the device via RS232, the device will return the following values:
20
Device ModBus
Function
address
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
Device Modbus
Function
address
code
After sending the above command to the device via RS232, the device will return the following values:
20
04
Device Modbus
Function
address
code
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
address
0F
00 00
Register address
00 00
Initial
address
08
Number of
represents an AI channel data, where
data bytes
the original value of each channel is
【2DI + 2AI + 4DO】 MA02-AACX2240 User Manual
bytes of data
Number of coils
00 04
The number of AI channels is 4
00 00 00 00 00 00 00 00
Raw value data of 4 AI
channels,Every 2 bytes of data
0,0,0,0 respectively
data
(bit operation)
OO O4
CRC check
XX XX
CRC check code
XX XX
CRC check code
code
XX XX
code
40

Advertisement

Table of Contents
loading

Table of Contents