O_SCALE: Scaled analog output
Original instructions
Function description
The procedure converts values from the REAL floating point format into 16 bit integer format. The scaling inputs ScalingInput0Percent and ScalingInput100Percent define the value range for the analog output. Accordingly, ScalingInput0Percent corresponds to 0 percent and ScalingInput100Percent to 100 percent of the output range (e.g. -10 ...10 V).
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD OutputChannel
O_SCALE ScalingInput0Percent, FloatingPointValue,
        ScalingInput100Percent
Representation in ST
Representation:
O_SCALE (OutputChannel, ScalingInput0Percent,
         FloatingPointValue, ScalingInput100Percent);
Parameter description
Description of input parameters:
Parameter
Data type
Meaning
OutputChannel
Output channel
ScalingInput0Percent
Scaling input, 0 percent
FloatingPointValue
REAL
Floating-point value
ScalingInput100Percent
REAL
Scaling input, 100 percent
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 module, use the O_SCALE_WARN function block.