ZHC4931Manual
Public
Chengdu Zongheng Intelligent Control Co., Ltd
8
www.iotrouter.com
Calculation formula:
Current value = Return value / 1000 Unit: mA
Register address range
:
30017
(
0x0010
)
Support function code: 04 (read input register)
Enquiry
:
55 04 00 10 00 01 3D DB
Query response
:
55 04 02
10 00
85 3C
The returned data is 0x1000, which means 4096uA, which is 4.096mA
3.4.
Analog self-calibration
ZHC4931 supports user-defined calibration analog values.
AI Self-calibration register address
:
40531~40532(0x0212~0x0213)
Support function codes: 03 (read holding registers), 10 (write multiple holding registers)
Each analog self-calibration occupies two register addresses. For example, the two
addresses 0x0212 and 0x213 are AI 1 (current 1) self-calibration register addresses. The two
register values are 0x2710 and 0x2710 before delivery. The two registers before and after
represent the K and B values, respectively.
Calibration current calculation formula:
Current acquisition value = (K / 0x2710) * original current output value + (B-0x2710) * 10
Note
:
After V1008, K is the reference voltage and B is the power amplifier multiple.
The calibration formula is:
Actual value = sample value * K / 4096 / B, where K defaults to 3300mV and B
defaults to 50 times.
Write in
:
55 10 02 12 00 02 04 3A 98 26 48 E9 4A
(
K
:
15000
、
B
:
9800
)
Write response
:
55 10 02 12 00 02 ED A1
Inquire
:
55 03 02 12 00 02 68 62
Query response
:
55 03 04 3A 98 26 48 78 97