ConverterToEngineeringValue Template Manual - bcnp59990045c
ConverterToEngineeringValue Template Manual - bcnp59990045c
This template is designed to convert the input value of the analog module to the engineering value.
Target equipment: analog input module
Function Overview
Scaling function
The input value of the analog module is converted, and the engineering value is output.
Calculation formula:
Engineering value = (Engineering Maximum – Engineering Minimum) / (Input Maximum – Input
Minimum) * (Input value– Input Minimum) + Engineering Minimum
If (Input Maximum – Input Minimum) is 0, then Engineering value is 0.
If Input value is out of range, Engineering value also becomes out of range.
Faceplate
The faceplate is shown below.
It is common for ConverterToEngineeringValue and ConverterToEVForHighResolution.
・GX Works3
Program Language: FBD/LD
FB Type: Subroutine Type
(This is the compile result in Q25H and may be different by CPU type and compile options.)
・GX Works3
The number of function block steps: 129 steps (ConverterToEngineeringValue)
129 steps (ConverterToEVForHighResolution)
(This is the compile result in R120 and may be different by CPU type and compile options.)
Equipment Parameter
Label Data Type IN/OUT Value (default value is Description
indicated with
underline)
EEE_SCALED_MIN REAL IN 0.00 Minimum engineering value
EEE_SCALED_MAX REAL IN 60.00 Maximum engineering value
EEE_RAW_MIN WORD / IN 0 Minimum input value
DWORD
(*)
EEE_RAW_MAX WORD / IN 4000 Maximum input value
DWORD
(*)
EEE_UNIT STRING(8) IN ‘Hz’ Engineering unit displayed on the
symbol and faceplate
EEE_DECIMALPOS WORD IN 2 (0 to 5) Number of digits displayed under the
decimal point
(*) In the case of EEE_EqConvToEV, Data Type is WORD. In the case of EEE_EqDConvToEV, Data Type is DWORD.
Program Interface
Label (Latched parameter is Data Type IN/OUT Value Description
GOT Library
Symbol and faceplate for GOT are shown below.
They are common for ConverterToEngineeringValue and ConverterToEVForHighResolution.
3. ToolTip
ToolTip is displayed when the cursor is on the symbol of Overview Display.