O_NORM_WARN: Standardized analog output with warning status
Original instructions
Function description
The function block returns values from the REAL floating point format as analog values in 16 bit integer format. The floating point value in the range of 0.0 to 1.0 is displayed onto the configured integer output value.
In addition the function block at the WARN_NEG and WARN_POS outputs indicate whether a status warning has occurred in the connected analog output EFB.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL O_NORM_WARN_Instance (CHANNEL:=OutputChannel,
    X:=REAL_variable, WARN_NEG=>UnderflowFlag,
    WARN_POS=>OverflowFlag)
Representation in ST
Representation:
O_NORM_WARN_Instance (CHANNEL:=OutputChannel,
    X:=REAL_variable, WARN_NEG=>UnderflowFlag,
    WARN_POS=>OverflowFlag) ;
Parameter description
Description of input parameters:
Parameter
Data type
Meaning
CHANNEL
Output channel
X
Standardized value
Description of output parameters:
Parameter
Data type
Meaning
WARN_NEG
0: no output value underflow at the closed analog output EFB
1: output value underflow at the closed analog output EFB
WARN_POS
BOOL
0: no output value overflow at the closed analog output EFB
1: output value overflow at the closed analog output EFB
Runtime error
An error message is returned
NOTE: For a list of all block error codes and values, seeAnalog I/O Scaling .