Omron SYSMAC CP Series Instruction & Reference Manual page 257

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

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
n
n
with D.
1. For S < X
0
Converted value = Y
≤ S ≤ X
2. For X
0
Converted value = Y
3. X
< S
max
Converted value = Y
Up to 256 endpoints can be stored in the line-segment data table beginning at C+1.
CP1E CPU Unit Instructions Reference Manual(W483)
Label
P_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.
P_EQ
• ON if the result is 0.
• OFF in all other cases.
P_N
• ON if bit 15 of R is ON.
• OFF in all other cases.
0
, if X
< S < X
max
n
n+1
+[{Y
+ 1 - Y
}/{X
+ 1 - X
n
n
n
n
max
Y (Binary data)
Y
max
Y
0
X
0
Y (binary data)
Equation:
f(S)=
Y
n+1
Calculation
D
result
Y
n
Operation
}] × {Input data S - X
n
X
max
X (Binary data)
Y
+
n
X
X
n+1 -
n
X
S
X
n
n+1
X (binary data)
Input data
2 Instructions
X
...
1
2
}
n
X
).
m
2
2-221

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents