
Chengdu Ebyte Electronic Technology Co.,Ltd
E851-RTU(4440-ETH) User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd
18
Function code 0x0F writes DO2, DO3 switch output, making NC2, COM2 disconnected, NO2, COM2 closed; NC3,
COM3 disconnected, NO3, COM3 closed. Write value should be 0x03, corresponding to binary bit 0000 0011
Modbus RTU protocol write switch output:
Transmit
01
0F
00 11
00 02
01
03
62 95
Device ModBus
address
Function code
Switching address
Write switch
quantity
Bytes
Write value
CRC check
code
Receive
01
0F
00 11
00 02
84 0F
Device ModBus address
Function code
Switching address
Write value
CRC check code
Modbus TCP Write Switch Output:
Transmit
00 01
00 00
00 08
01
0F
00 11
00 02
01
03
Transmission
identifier
Protocol
identifier
length
element
ID
Function
code
Switching
address
Write Switch
Quantity
Bytes
Write
value
Receive
00 01
00 00
00 06
01
0F
00 11
00 02
Transmission
identifier
Protocol
identifier
length
element ID
Function code
Switching
address
Write Switch Quantity
4.2.2. Read switch DI input
Function Code: 02, Read (Switch) Input Status
Address range: 10017 (0x0010) ~10020 (0x0013)
Description: Default Dry Contact Input for Device, when DI and COM are short connected, the read value should be 1;
when DI and COM are not short connected, the read value should be 0.
Example:
Read 4 way switch input value, In DI input terminal, DI1, COM1 short connection, DI2, COM2 are not short connection,
DI3, COM3 short connection, DI4, COM4 are not short connection. The input digital input value is 0x05, corresponding
to the binary bit 0000 0101, and the four bits of the lower four bits represent the digital input value, which are in turn DI4,
DI3, DI2, DI1.
Modbus RTU protocol reads switching input:
Transmit
01
02
00 10
00 04
78 0C
Device ModBus
address
Function code
Switch start address
Read the quantity of
switches
CRC check code
Содержание E851-RTU
Страница 1: ...E851 RTU 4440 ETH User Manual...