User Manual
High−level Instructions
3 − 759
Outline Scaling(linearization) on a real number data table is performed, and the
output (Y) to an input value (X) is calculated.
With FP2/FP2SH, this function is available from Ver. 1.50 or later.
Program example
Ladder
Diagram
Boolean
Ladder Diagram
Address Instruction
S1
Trigger
DS2
F354 FSCAL, DT0, DT10, DT100
10
R0
10
11
ST R 0
F354 (FSCAL)
DT 0
DT 10
DT 100
S1 Real numerical value or area which shows the input value (X)
S2 Head area of the data table used for scaling
D Area in which the output value (Y) stored
Operands
O
p
erand
Relay
Timer/
Counter
Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL SV EV DT LD FL I K H H f
modifier device
S1 A A A A A A A A A A A A N/A A A A
S2 A A A A A A A A A A N/A N/A N/A N/A A N/A
D N/A A A A A A A A A A N/A N/A N/A N/A A A
Explanation of example
The output value Y is calculated for the input value stored in DT0 referring to the data table which starts with
DT10, and the result is stored in DT100.
Description
1) Scaling (linearization) is performed according to the data table of the real number specified by [S2] in the
inputted real numerical value [S1], and an output value is stored in [D].
2) An output value is calculated by searching the linear section of an input value [S1], and computing the
linear interpolation between these two points from the linear table specified by [S2].
When the specified input value is out of the registration range of an linear table, the output value (Y0 or
Yn) over a starting point (x0) or an ending point (xn) is stored, respectively.
[S1] <= x
0
−−− [D] = y
0
[S1] >= x
n
−−− [D] = y
n
FP2/FP2SH/FP−X/FPΣ
F354
P354
(PFSCAL)
(FSCAL)
Scaling of real number data
Availability
FP2/FP2SH
FP−X (V1.13 or more)
FPΣ 32k/FP0R
A
:
A
vailable
N/A: Not Available