457
Special Math Instructions Section 3-13
Cosine Function (C = 0001 Hex)
Linear Extrapolation Function (C = Data area address)
Note If C is a word address, APR(069) extrapolates the Y value for the X value in S
based on coordinates (forming line segments) entered in advance in a table
beginning at C. Refer to the Description section below for details.
Operand Specifications
Operand Value Data range
C 0001 hex ---
S 0000 to 0900 (BCD) 0° to 90°
D 0000 to 9999 (BCD) 0.0000 to 0.9999
9999 (BCD) 1.0000
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
1
−32,768 to 32,767
32-bit signed binary data
1
−2,147,483,648 to 2,147,483,647
Floating-point data
1
−∞,
−3.402823 × 10
38
to −1.175494 × 10
−38
,
1.175494 × 10
−38
to 3.402823 × 10
38
,
+∞
D 16-bit unsigned BCD data 0000 to 9999
16-bit unsigned binary data 0 to 65,535
16-bit signed binary data
1
−32,768 to 32,767
32-bit signed binary data
1
−2,147,483,648 to 2,147,483,647
Floating-point data
1
−∞,
−3.402823 × 10
38
to −1.175494 × 10
−38
,
1.175494 × 10
−38
to 3.402823 × 10
38
,
+∞
Area C S R
CIO Area CIO 0 to CIO 6143
Work Area W0 to W511
Holding Bit Area H0 to H511
Auxiliary Bit Area A0 to A959 A448 to A959
Timer Area T0000 to T4095
Counter Area C0000 to C4095
DM Area D0 to D32767
Indirect DM addresses
in binary
@ D0 to @ D32767
Indirect DM addresses
in BCD
*D0 to *D32767
Constants Specified values only ---
Data Registers --- DR0 to DR15
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15