ZHC4931Manual
Public
Chengdu Zongheng Intelligent Control Co., Ltd
7
www.iotrouter.com
Query response:
(1 detected)
:
55 02 01 01 70 78
3.2.2.
Pulse counting
Register address range
:
30049~30050(0x0030~0x0031)
Support function code: 04 (read discrete input)
Pulse counting
:
The default state of the product is 0. The input signal to the DI port counts
up by one. The detection method is to read the value of the pulse counter by the 04 function code
of the Modbus protocol. The maximum value of the pulse count is 65535. No more than 65535,
the user can modify the
pulse count clear register
to reset the pulse count.
Take the first detection as an example:
Enquiry
:
55 04 00 30 00 01 3C 11
Query response
:(
7 signal outputs detected
):
55 04 02 00 07 C9 3E
3.2.3.
Key detection
Register address range
:
30081~30082(0x0050~0x0051)
Support function code: 04 (read input register)
Key detection: The default state of the product is 0000, and the state after a key signal (
press
+ pop
) is FF00. The detection method is that the 04 function code of the Modbus protocol
reads the value of the key register. After the key register is read once, the state is restored to
0000. After the condition control is executed, the state is restored to 0000.
Take the detection of the first key as an example:
Enquiry
:
55 04 00 50 00 01 3C 0F
Query response
: (with key action)
:
55 04 02 FF 00 C9 0C
Query response
: (with key action)
:
55 04 02 00 00 88 FC
3.3.
AI Input
For wiring method, please refer to "ZHC4921 Wiring Instructions"