Omron CS1G/H-CPUxxH Instructions Manual page 526

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Special Math Instructions
Linear Extrapolation (C: Word Address)
Using 16-bit Unsigned BCD or Binary Data
APR(069) processes the input data specified in S based on the control data in
C and the line-segment data specified in the table beginning at C+1. The
result is output to D.
Y
Y
m
Y
4
Y
3
Y
1
Y
2
Y
0
X
X
X
X
X
0
1
2
3
• Y
= f(X
), Y
= f(X
n
n
0
• Be sure that X
n–1
• Input all values of (X
This example shows how to construct a linear extrapolation with 12 coordi-
nates. The block of data is continuous, as it must be, from D00000 to D00026
(C to C + (2 × 12 + 2)). The input data is taken from CIO 0010, and the result
is output to CIO 0011.
Content Coordinate
D00000 000B Hex
X
D00001 05F0 Hex
12
Y
D00002 0000 Hex
0
X
D00003 0005 Hex
1
Y
D00004 0F00 Hex
1
X
D00005 001A Hex
2
Y
D00006 0402 Hex
2
X
D00025 05F0 Hex
12
Y
D00026 1F20 Hex
12
In this case, the source word, CIO 0010, contains 0014, and f(0014) = 0726 is
output to R, CIO 0011.
C+1
C+2
C+3
C+4
C+5
C+6
C+(2m+1)
X
C+(2m+2)
X
4
m
)
0
< X
in all cases.
n
, Y
) as binary data.
n
n
Bit
15
0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Output and input
both binary
Section 3-14
Coordinate
Word
Xm (max. X
value)
Y
0
X
1
Y
1
X
2
Y
2
X
(max. X
m
value)
Y
m
(m–1 = 11: 12 line
x=S
segments)
Bit
00
505

Advertisement

Table of Contents
loading

Table of Contents