EditReal
EditReal (FB)
EditReal (FB)FUNCTION_BLOCK EditReal
Short description
Input of a numeric value Typical application: input of a target temperature
Representation

Interfaces
Outputs
rOut
REAL
Numeric output value
Setpoints / parameters
rSetPoint
REAL
0
Numeric input value
Function description
General
This function block is used to pass a numeric input value rSetPoint and the direct transfer to the numeric output value rOut.\
Behavior in case of power failure
The numeric input value rSetPoint is stored fail-safe and automatically restored.
Visualization
Matching visualization element from the HVACV Visu Library: EditReal
Representation
Interfaces visual element
rValue
REAL
VAR_IN_OUT
Enter numeric input value here e.g. EditReal.rSetPoint
bDecimals
BYTE
VAR_INPUT
0
Enter the number of decimal places here, e.g. 0 = XX ; 1 = XX.X ; 2 = XX.XX The display is truncated, not rounded.
sUnit
STRING
VAR_INPUT
Enter unit in string format e.g. '°C' or '%'
rMinInputVisu
REAL
VAR_INPUT
-1000
Min input that appears on the numpad and lights up red when the value is undershot. Input is then not possible.
rMaxInputVisu
REAL
VAR_INPUT
1000
Max input that appears on the numpad and lights up red when the value is exceeded. Input is then not possible.
sDialogTitle
STRING
VAR_INPUT
Enter the title in string format e.g.: 'Input room temperature' - appears on the numpad during entry.
iFieldSizeL
INT
VAR_INPUT
0
Field enlarges by the number of entered pixels to the left. Required to display long numbers or units.
iFieldSizeR
INT
VAR_INPUT
0
Field enlarges by the number of entered pixels to the right. Required to display long numbers or units.
Note: VAR_IN_OUT interfaces must be assigned, VAR_INPUT are optional.
CODESYS
InOut:
Input Const
rSetPoint
REAL
0
Output
rOut
REAL
Last updated

