Chengdu Ebyte Electronic Technology Co., Ltd.
E831-RTU (6060-ETH) User Manual
Description: When the device defaults to dry contact input, DI and COM shorts, the read value should be 1;
When
DI and COM are not shorted, the read value should be 0. Example:
Reads
6 switch input values, DI
input
DI1, COM1 short, DI2, COM2 Not shorted, DI3, COM3 shorted, DI4, COM4 not shorted,
DI5, COM5 is not shorted, DI6, COM6 are not shorted. The read switch input value is 0x05, corresponding to the binary bit 0000
0101, and the low six bits represent the switch input value, depending
on
the order DI 6, DI5, DI4, DI3 DI2
、
DI1
。
Modbus RTU protocol reads the switch input:
Send
01
02
00 10
00 06
F9 CD
Provision the
ModBus address
Functional
codes
The address
where
the switch starts
The number
of
read switches
CRC check digits
Receivin
g
01
02
01
05
61 8B
Provision the
ModBus address
Functional
codes
The number of
bytes returned
Enter a value for
the on-off quantity
CRC check digits
The Modbus TCP protocol reads the switch input:
Send
00 01
00 00
00 06
01
02
00 10
00 06
Transmit
the logo
Protocol
identity
length
Unit
identificati
on
Functional
codes
The address
where
the switch starts
The number
of
read switches
Receivin
g
00 01
00 00
00 04
01
02
01
05
Transmit
the logo
Protocol
identity
length
Unit
identificatio
n
Functiona
l codes
The number of
bytes returned
Enter a value for
the on-off
quantity
4.3 IO Features
4.3.1 Pulse counting and counting zeroing
Pulse counts are not saved after a power outage and the pulse level hold time must be greater than 10ms to be valid. The
switching input changes from the off state to the closed state and maintains
a closing time of
10ms or more, and then to the off
state, completing a pulse count.
Reads the pulse count value
Function code: 03, read hold register
Address range: 40049 (0x0030) ~ 40054 (0x0035).
Description: The maximum value of the pulse count is 65535
Example:
DI1 has currently detected 16 pulses, DI2 has detected 3 pulses, reading DI1, DI2 Switch input count value
Modbus RTU protocol read pulse count value:
Send
01
03
00 30
00 02
C4 04
Provision the ModBus
address
Functiona
l codes
The start address
The number of
reads
CRC check digits
Receivin
g
01
03
04
00 10
00 03
BB F7
Provision the
ModBus address
Functional
codes
The number of
bytes returned
DI1 count
value
DI2 count value
CRC check
digits
Modbus TCP protocol read pulse count value:
Send
00 01
00 00
00 06
01
03
00 30
00 02
Transmit the
logo
Protocol
identity
length
Unit
identificatio
n
Functional
codes
The start
address
The number of
reads