Modbus RTU protocol write digital output
:
Transmis
sion
01
0F
00 11
00 02
01
03
62 95
Device ModBus
Address
Function
code
Switch
value
address
Write
switch value
numbers
Bytes
numbe
rs
Write
value
CRC
parity code
Receivin
g
01
0F
00 11
00 02
84 0F
Device ModBus
Address
Function
code
Switch
value
address
Write value
CRC parity code
4.2.2. Read switch value DI input
Function code: 02
,
Read
(
switch value
)
input status
Address range: 10017(0x0010)~10023(0x0017)
Description: The device defaults to dry contact input. When DI and DIG are short-circuited, the read
value should be 1. When DI and DIG are not short-circuited, the read value should be 0.
Example:
Read 8 digital input values. DI input terminal DI1 and DIG are short-circuited, DI2 and DIG are
not short-circuited, DI3 and DIG are short-circuited, DI4 and DIG are not short-circuited, The read
digital input value is 0x05, corresponding to the binary bit 0000 0101. The 8 bits represent the digital
input value, which are DI8, DI7, DI6, DI5, DI4, DI3, DI2, DI1 in order.
Modbus RTU protocol read digital input:
Transmis
sion
01
02
00 10
00 08
78 09
Device ModBus
Address
Function
code
Switch value
initial address
Read switch value
numbers
CRC parity code
Receivin
g
01
02
01
05
61 8B
Device ModBus
Address
Function
code
Return bytes
numbers
Digital input value
CRC parity
code
Содержание E831-RTU(8080T-485)
Страница 10: ...2 2 Size Interface description ...