Chengdu Ebyte Electronic Technology Co.,Ltd.
【
8DO
】
MA02-XXCX0080 User Manual
Copyright ©2012–2021
,Chengdu Ebyte Electronic Technology Co.,Ltd.
第
30
页
0x0003,is 9600
;
0x0004,is 19200
;
0x0005,is 38400
;
0x0006,is 57600
;
0x0007,is 115200
;
(42102)0x0836
1
verify mode
RW
The default value is0x0000,no
checksum.
0x0000,no verificatio
;
0x0001,Parity
;
0x0002,even check
;
0x03
、
0x06
、
0x10
7.2 Directive Format (Part)
7.2.1 Read the DO output coil status
Read the output coil status using the 01 function code,For example: Read the two output coil states
20
01
00 00
00 02
XX XX
Device
Modbus
address
FC
Register start address
Number of output
coils read
CRC checkcode
After sending the above command to the device via RS232, the device returns the following values
:
20
01
01
02
XX XX
Device
Modbus
address
FC
Number of bytes of
the data
The state data that
was returned
CRC checkcode
The state data 02 returned above indicates the output DO2 pass on.
7.2.2 Read to keep the register
One or more register values were read using the 03 functional code,For example: Read the DO1
working mode.
20
03
05 78
00 01
XX XX
Device
Modbus
address
FC
Register start address
Number of output
coils read
CRC checkcode