Omron SYSMAC CS Series Instruction & Reference Manual page 406

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Flags
Name
Error Flag
Equals Flag
Negative Flag
Function
 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
Y
) specified in the table beginning at C+1. The result is output to the destination word(s) specified with D.
n
1. For S < X
0
Converted value = Y
0
2. For X
≤ S ≤ X
, if X
0
max
Converted value = Y
+[{Y
n
3. X
< S
max
Converted value = Y
max
Up to 256 endpoints can be stored in the line-segment data table beginning at C+1.
372
Label
ER
• ON if C is a constant greater than 0001.
• ON if C is a word address but the X coordinates are not in ascending order (X
• ON if C is a word address and bits 9, 11, and 15 of C indicate BCD input, but S is not BCD.
• ON if C is a word address and bit 9 of C indicates floating-point data, but S is a one-word constant.
• ON if C is 0000 or 0001 but S is not BCD between 0000 and 0900.
• OFF in all other cases.
=
• ON if the result is 0.
• OFF in all other cases.
N
• ON if bit 15 of R is ON.
• OFF in all other cases.
< S < X
n
n+1
+ 1 - Y
}/{X
+ 1 - X
}] × {Input data S - X
n
n
n
n
Y (Binary data)
Y
max
Y
0
X
0
A
B
Y (binary data)
Equation:
f(Y)=
Y
n+1
Calculation
D
result
Y
n
X
Operation
}
n
X
max
X (Binary data)
C
−Y
Y
n+1
n
Y
+
(S−X
)
n
−X
n
X
n+1
n
−Y
Y
n+1
n
−X
X
n+1
n
S−X
n
S
X
n
n+1
X (binary data)
Input data
CS/CJ/NSJ Series Instructions Reference Manual (W474)
X
...
X
).
1
2
m
,
n

Advertisement

Table of Contents
loading

Table of Contents