Omron CP1E-NA@@D@-@ Computer Hardware User Manual


 
2-219
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Special Math Instructions
2
APR
Linear Extrapolation Function
Linear Extrapolation (C = Data area address)
APR(069) linear extrapolation is specified when C is a word
address.
The content of word C specifies the number of coordinates in
a data table starting at C+2, the form of the source data, and
whether data is BCD or binary.
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
Operand Value Data range
C Data area address ---
S
16-bit unsigned BCD data 0000 to 9999
16-bit unsigned binary
data
0 to 65,535
16-bit signed binary data -32,768 to 32,767
32-bit signed binary data -2,147,483,648 to
2,147,483,647
Floating-point data
-
,
-3.402823
× 10
38
to
-1.175494
× 10
-38
,
1.175494
× 10
-38
to
3.402823
× 10
38
,
+
R
16-bit unsigned BCD data 0000 to 9999
16-bit unsigned binary
data
0 to 65,535
16-bit signed binary data -32,768 to 32,767
32-bit signed binary data -2,147,483,648 to
2,147,483,647
Floating-point data
-
,
-3.402823
× 10
38
to
-1.175494
× 10
-38
,
1.175494
× 10
-38
to
3.402823
× 10
38
,
+
C
0
314 13 12 11 910 87654 2115
0
0
000
Number of coordinates minus one (m-1),
00 to FF hex (1 m 256)
· Unsigned Integer Data (Binary or BCD)
Floating-point specification for S and D
0: Integer data
Signed data specification for S and D
0: Unsigned binary data
Source data form
0: f(x) = f(S)
1: f(x) = f(Xm - S)
Output (D) data format
0: Binary
1: BCD
Input (S) data format
0: Binary
1: BCD