Panasonic FP-E Programming Manual page 1023

Fp series
Table of Contents

Advertisement

FP2/FP2SH/FP−X/FPΣ
F354
(FSCAL)
P354
(PFSCAL)
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
Trigger
R0
F354 FSCAL, DT0, DT10, DT100
10
S1
S2
D
Operands
Relay
Operand
Operand
WX WY WR WL SV
S1
A
A
S2
A
A
D
N/A
A
Explanation of example
The output value Y is calcuated 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
−−− [D] = y
0
[S1] >= x
−−− [D] = y
n
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
Scaling of real number data
Ladder Diagram
Ladder Diagram
S1
Real numerical value or area which shows the input value (X)
Head area of the data table used for scaling
Area in which the output value (Y) stored
Timer/
Register
Counter
EV
DT
A
A
A
A
A
A
A
A
A
A
A
A
A
A
A
0
n
S2
D
Index
register
LD
FL
I
K
A
A
A
A
A
A
A
N/A N/A N/A N/A
A
A
A
N/A N/A N/A N/A
High−level Instructions
Availability
FP2/FP2SH
FP−X (V1.13 or more)
FPΣ 32k/FP0R
Boolean
Address
Instruction
10
ST
R
11
F354
(FSCAL)
DT
DT
DT
Constant
Index
modifier
modifier device
H
H
f
A
N/A
A
A
A
A
A:
Available
N/A: Not Available
0
0
10
100
Integer
device
A
N/A
A
3 − 759

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents