I_SCALE: Scaled analog input
Original instructions
Function description
The function converts data from the 16 bit integer format into the 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)
EN and ENO can be configured as additional parameters.
NOTE: The I_SCALE function can not be used to scale temperature measurements. Please use the I_PHYS function to scale temperature measurements.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD InputChannel
I_SCALE ScalingInput0Percent,ScalingInput100Percent
ST ScaledValue
Representation in ST
Representation:
ScaledValue := I_SCALE (InputChannel,
    ScalingInput0Percent, ScalingInput100Percent) ;
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
OUT
REAL
Scaled value
Runtime error
An error message is returned
NOTE: For a list of all block error codes and values, seeAnalog I/O Scaling .
NOTE: To evaluate the status information for the I/O module, use the I_SCALE_WARN function block.