Process control instructions
958
Part III FP Instructions
SCALE_INT_UINT
Scale INTEGER data into unsigned INTEGER data
See also:
F282_SCAL (see page 468)
F283_DSC
AL (see page 471)
PLC types see page 1330
Variable Data type Function
iInput Input signal
iInputLowerLimit Lower limit of the input range
iInputUpperLimit
INT
Upper limit of the input range
uiOutputLowerLimit Output value assigned to the upper limit of the input range (can
be lower than uiOutputLowerLimit)
uiOutputUpperLimit Output value assigned to the lower limit of the input range (can
be higher than uiOutputUpperLimit)
Output variable
UINT
Scaled output signal
Description
This instruction scales an INTEGER value between a lower and an upper limit to an unsigned
INTEGER output value. Use WITHIN_LIMITS (see page 111) to check if the input value is within
the specified limits.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD