Panasonic FP Series Programming Manual page 959

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Process control instructions
SCALE_INT_UINT
This instruction scales an INTEGER value between a lower and an upper limit to an unsigned
Description
INTEGER output value. Use WITHIN_LIMITS (see page 111) to check if the input value is within
the specified limits.
See also:
F282_SCAL (see page 468)
F283_DSCAL (see page 471)
see page 1330
PLC types
Data types
Variable
iInput
iInputLowerLimit
iInputUpperLimit
uiOutputLowerLimit
uiOutputUpperLimit
Output variable
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
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
958
Scale INTEGER data into unsigned INTEGER data
Data type
Function
Input signal
INT
Lower limit of the input range
Upper limit of the input range
Output value assigned to the upper limit of the input range (can
be lower than uiOutputLowerLimit)
UINT
Output value assigned to the lower limit of the input range (can
be higher than uiOutputUpperLimit)
Scaled output signal

Advertisement

Table of Contents
loading

Table of Contents