179
Improved Instructions
Section 7-14
7-14-2 APR Instruction
Signed BIN 16/32 Bit
Linear Approximation
Operation
Overview
All -V1 units, as well as CS1-H CPU units, can use "signed 16/32 bit data"
with APR instruction.
Explanation of Operations
Following the conversion formula below, approximate calculation about the
input data specified in S is performed based on the linear data (Xn, Yn) spec-
ified in T. The result is output to the word specified in D. Only the content
stored in the word address specified in S can be used as the input data X.
When Xn < S < Xn+1
Conversion formula: conversion result = Yn + [{Yn+1
-
Yn}/{Xn+1
-
Xn}] x
{input data S
-
Xn}
APR
@APR
T
T
T: First word address of linear data
S
S
S: Word address of input data
D
D
D: First word address of storage location for cal-
culation result
X
Y
Y
n
Y
n+1
X
n
X
n+1
S
S
−
X
n
X
n+1
−
X
n
Y
n+1
-Y
n
Calculation
result
Input data
f (Y)=
Y
n+1
−
Y
n
X
n+1
−
X
n
(S
−
X
n
)
Equation:
D
Y
n
+
X
0
Y
0
Содержание CS1W-HCA12-V1
Страница 2: ......
Страница 6: ...vi...
Страница 20: ...xx Conformance to EC Directives 7...
Страница 38: ...18 Models and System Configurations Section 1 2...
Страница 78: ...58 Fail safe Circuits Section 3 5...
Страница 138: ...118 AR Area Section 6 4...
Страница 204: ...184 Improved Instructions Section 7 14...
Страница 222: ...202 Cycle Time Section 8 3...
Страница 240: ...220 Troubleshooting Flowcharts Section 9 5...
Страница 244: ...224 Precautions when Using the CX Programmer Appendix A...
Страница 252: ......
Страница 253: ......