Chengdu Ebyte Electronic Technology Co.,Ltd
ME31-XAXX0600_UserManual_CN
Copyright ©2012–2023
,
Chengdu Ebyte Electronic Technology Co.,Ltd
14
1.4.3. Analog input engineering quantity shaping value and engineering quantity
floating point value
There are two ways to read the current signal size collected by the device:
(1) Read the AI engineering quantity shaping value and directly convert it to obtain the input current. The
starting address of the AI engineering quantity shaping value register is 0x0064, the register type is input register,
and the read function code is 0x04. This method returns a register representing one channel and reads values
ranging from 0 to 25000. The method for calculating the current size is 0-25000 corresponding to 0-25A. Namely:
Current=engineering quantity value/1000 (mA)
(2) Read the floating point value of AI engineering quantity, and use IEE754 conversion tool to convert
hexadecimal data to Floating-point arithmetic to get the input current. The starting address of the AI engineering
quantity shaping value register is 0x00C8, the register type is input register, and the read function code is 0x04.
This method returns two registers representing one channel.
1.4.4. AI Filtering parameters
The filtering parameters of the AI channel can be set, with valid values ranging from 1 to 16 and a default
value of 6.
Filter parameter description:
(1) All AI channels share a common filtering parameter, and the higher the parameter value, the more stable
the output value, and the slower the response.
(2) The AI channel filtering parameter address is 0x04B0, and the register type is a holding register. Function
codes 0x06 and 0x10.
(3) When writing AI filtering parameters, if the parameter values written are not within the range of 1-16, the
closest value will be automatically taken for writing. If the filtering parameter is written as 0, the device will take 1
as the filtering parameter, and Modbus will not return error instructions.
4.2 Modbus gateway
The device can transmit non local Modbus instructions from the network/serial port to the serial port/network,
and the local Modbus instructions can be executed directly.
4.2.1 Modbus TCP/RTU Protocol Conversion
After being turned on, the Modbus TCP data on the network side will be converted into Modbus RTU data.