Chengdu Ebyte Electronic Technology Co., Ltd.
ME31- XAXA0404 _User Manual
Copyright © 2012–2023 , Chengdu Ebyte Electronic Technology Co., Ltd.
15
4.1.3 Engineering quantity integer value and engineering quantity floating
point value of analog input
There are two ways to read the current signal collected by the device:
(1 ) Read the AI engineering volume shaping value, and directly convert to get the input current. The starting
address of the register of AI engineering quantity shaping value is 0x0064, the register type is input register, and the
read function code is 0x04. The value returned by this method represents one channel per register , and the value
read is 0 to 25000. The method of calculating the current is 0~25000 corresponding to 0~25mA. That is :
Current = engineering value / 1000 (m A)
(2 ) Read the floating-point value of the AI engineering quantity , and use the IEE754 conversion tool to
convert the hexadecimal data into a floating-point number to obtain the input current. The starting address of the
register of AI engineering quantity shaping value is 0x00 C8 , the register type is input register, and the read
function code is 0x04. This method returns two registers representing 1 channel.
4.1.4 AI filter parameters
AI channel can be set , the effective value is 1-16 , and the default value is 6.
Description of filtering parameters:
(1) All AI channels share a filter parameter. The higher the parameter value, the more stable the output value and
the slower the response.
(2) The AI channel filter parameter address is 0x04B0, and the register type is a holding register. Function code
0x06, 0x10.
(3) When writing AI filter parameters, if the written parameter value is not within the range of 1 to 16, it will
automatically take the closest value and write it in. If the write filter parameter is 0, the device will take 1 as the
filter parameter, and Modbus does not return error commands .
4.2 AO output
4.2.1 AO output range
Analog output ( AO ), the current output type can be configured as 0~20mA or 4~20mA , the precision is 3 ‰,
and the resolution is 16 bits.
The power-on default output value can be set (when the working mode is switched, the power-on value will be
output according to the lowest value of the current range).