Pre-configured application - ALU configuration
The sensor transmits the temperature value in tenths of a degree and the humidity value in tenths of percent RH. Therefore, both values need to be divided by ten to get standardised or scaled values in degree Celsius and %RH. The read Modbus values for temperature and humidity are converted to degree Celsius and %RH in the Arithmetic Logic Unit (ALU). The conversion results will be written to two flags.
Adding the flags
Menu Data points → Flags
Two flags for storing the converted sensor values are added here. Both flags are floating-point numbers and their value does not persist a restart of the application.
Adding the conversion
Menu ALU → Arithmetic
The read Modbus value will be divided by the value 10 here. Additionally, the result will also be assigned to the flag flag1.
The read Modbus value will be divided by the value 10 here. Additionally, the result will also be assigned to the flag flag2.