O_PHYS_WARN: Physical analog output with warning-status
Original instructions
Function description
The function block provides analog input values (voltage, current or temperature) as physical values in REAL floating-point format.
The function block is used for output modules with configuration information.
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_PHYS_WARN_Instance (CHANNEL:=OutputChannel,
    X:=PhysicalValue, WARN_NEG=>UnderflowFlag,
    WARN_POS=>OverflowFlag)
Representation in ST
Representation:
O_PHYS_WARN_Instance (CHANNEL:=OutputChannel,
    X:=PhysicalValue, WARN_NEG=>UnderflowFlag,
    WARN_POS=>OverflowFlag) ;
Parameter description
Description of input parameters:
Parameter
Data type
Meaning
CHANNEL
Output channel
X
Physical 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 .