Special Math Instructions
Note
460
The X coordinates must be in ascending order: X
values of (X
, Y
) as binary data, regardless of the data format specified in
n
n
control word C.
Operation of the Linear Extrapolation Function
APR(069) processes the input data specified in S with the following equation
and the line-segment data (X
The result is output to the destination word(s) specified with D.
Y (Binary data)
Y
max
Y
0
X
0
A
B
1. For S < X
0
Converted value = Y
2. For X
S
X
, if X
0
max
Converted value = Y
Y (binary data)
Equation:
Y
n+1
Calculation
D
result
Y
n
3. X
< S
max
Converted value = Y
Up to 256 endpoints can be stored in the line-segment data table beginning at
C+1. The following 5 kinds of I/O data can be used:
• 16-bit unsigned BCD data
• 16-bit unsigned binary data
• 16-bit signed binary data
• 32-bit signed binary data
• Single-precision floating-point data
, Y
) specified in the table beginning at C+1.
n
n
X
max
C
0
< S < X
n
n+1
+[{Y
+ 1
Y
}/{X
+ 1
n
n
n
n
Y
Y
n+1
n
Y
+
f(Y)=
(S X
)
n
n
X
X
n+1
n
X
X
n+1
n
S X
n
X
S
X
n
n+1
Input data
max
Section 3-13
< X
< ... < X
. Input all
1
2
m
X (Binary data)
X
}]
[Input data S
n
Y
Y
n+1
n
X (binary data)
X
}
n
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers