Panasonic FP Series Programming Manual page 961

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Process control instructions
SCALE_REAL
This instruction scales a REAL value between a lower and an upper limit to a REAL output value.
Description
Use WITHIN_LIMITS (see page 111) to check if the input value is within the specified limits.
See also:
F354_FSCAL (see page 478)
see page 1330
PLC types
Data types
Variable
rInput
rInputLowerLimit
rInputUpperLimit
rOutputLowerLimit
rOutputUpperLimit
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
960
Scale REAL data
Data type
Function
Input signal
Lower limit of the input range
Upper limit of the input range
REAL
Output value assigned to the upper limit of the input range (can
be lower than rOutputLowerLimit)
Output value assigned to the lower limit of the input range (can
be higher than rOutputUpperLimit)
Scaled output signal

Advertisement

Table of Contents
loading

Table of Contents