Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 488

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

• Y
= f(X
), Y
n
n
0
• Be sure that X
• Input all values of (X
This example shows how to construct a linear extrapolation with 12 coordinates. The block of data is
continuous, as it must be, from D0 to D26 (C to C + (2
and the result is output to CIO 11.
0.00
APR
D0
10
11
In this case, the source word, CIO 0010, contains 0014, and f(0014) = 0726 is output to R, CIO 0011.
The linear-extrapolation calculation is shown below.
0402 0F00
-------------------------------- -
Y
0F00
=
+
001A 0005
0F00
0086
=
=
0726
CS/CJ/NSJ Series Instructions Reference Manual (W474)
= f(X
)
0
< X
in all cases.
n-1
n
, Y
) as binary data.
n
n
Content Coordinate
D0 000B Hex
X
D1 05F0 Hex
12
Y
D2 0000 Hex
0
X
D3 0005 Hex
1
Y
D4 0F00 Hex
1
X
D5 001A Hex
2
Y
D6 0402 Hex
2
X
D25 05F0 Hex
12
Y
D26 1F20 Hex
12
Y
$1F20
$0F00
$0726
$0402
(0,0)
$0005
0014 0015
000F
Values are all hexadecimal (Hex).
Word
Coordinate
C+1
Xm (max. X value)
C+2
Y
0
C+3
X
1
C+4
Y
1
C+5
X
2
C+6
Y
2
C+(2m+1)
X
(max. X value)
m
C+(2m+2)
Y
m
12 + 2)). The input data is taken from CIO 10,
Bit
15
0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Output and input
both binary
(x,y)
$0014
$001A
3. Instructions
(m–1 = 11: 12 line
x=S
segments)
X
$05F0
3
Bit
00
451

Advertisement

Table of Contents
loading

Table of Contents