Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 619

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
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
Y
Y0
Y1
Y2
Y4
Y3
Ym
X
0
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
X
C+(2m+2)
4
m
)
0
< X
in all cases.
n
, Y
) as binary data.
n
n
X
X
X
X
Xm
1
2
3
4
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
X
(m–1 = 11: 12 line
x=S
segments)
Bit
00
579

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents

Save PDF