I_SCALE_WARN: Scaled analog input with warnings status
Original instructions
Function description
The function block converts data from 16 bit integer format into REAL floating-point format. The scaling inputs MN and MX predefine the value range for the output. MN corresponds to 0 percent and MX to 100 percent. The integer input value is displayed in the floating-point range. If there are warning ranges for the current data format (e.g. 16 bit, +/- 10 V), the floating point value can be expanded to over 100 percent (e.g. 101.6 percent)
In addition, the function block indicates at the WARN output whether a status warning has occurred in the connected analog input EFB.
EN and ENO can be configured as additional parameters.
NOTE: The I_SCALE_WARN function cannot be used to scale temperature measurements. Please use the I_PHYS_WARN function to scale temperature measurements.
The I_SCALE_WARN function can only be used with the analog input EFBs All330, AMM090 and AVI030, which are able to generate status information with warnings. Please use the I_SCALE function for all other input EFBs.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL I_SCALE_WARN_Instance (CHANNEL:=InputChannel,
    MN:=ScalingInput0Percent, MX:=ScalingInput100Percent,
    Y=>ScaledValue, WARN=>StatusWarning)
Representation in ST
Representation:
I_SCALE_WARN_Instance (CHANNEL:=InputChannel,
    MN:=ScalingInput0Percent, MX:=ScalingInput100Percent,
    Y=>ScaledValue, WARN=>StatusWarning) ;
Parameter description
Description of input parameters:
Parameter
Data type
Meaning
CHANNEL
Input channel
MN
Scaling input, 0 percent
MX
REAL
Scaling input, 100 percent
Description of output parameters:
Parameter
Data type
Meaning
Y
REAL
Scaled value
WARN
0: no status warning on the connected analog input EFB
1: status warning on the connected analog input EFB
Runtime error
An error message is returned to the diagnostic buffer
NOTE: For a list of all block error codes and values, seeAnalog I/O Scaling .