![Omron CVM1D Скачать руководство пользователя страница 321](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532321.webp)
Y
0
Y
2
Y
1
Y
3
Y
4
Y
m
X
0
X
1
X
2
X
3
X
4
X
m
X
Y
0000
00
(142)
APR
D00000
0010
0011
316
Source data
Result
S: D00010
R: D00200
0
10
1
10
0
10
–1
10
–1
10
–2
10
–3
10
–4
0
3
0
0
8
6
6
0
Enter input data not exceeding #0900
in BCD form.
Result data has four significant
digits, fifth
and higher digits are ignored.
The result for cos(0) will be
0.9999, not 1.
APR(142) linear extrapolation is specified when C is a word address.
The content of word C specifies the number of coordinates in a data table start-
ing at C+2, the form of the source data, and whether data is BCD or binary.
Bits 00 to 07 contain the number (binary) of line coordinates less 1, m–1. Bits 08
to 12 are not used. Bit 13 specifies either f(x)=f(S) or f(x)=f(X
m
–S): OFF specifies
f(x)=f(S) and ON specifies f(x)=f(X
m
–S). Bit 14 determines whether the output is
BCD or binary: OFF specifies BCD and ON specifies binary. Bit 15 determines
whether the input is BCD or binary: OFF specifies BCD and ON specifies binary.
15 14 13
Not used.
07 06 05 04 03 02 01 00
Source data form
1 (ON):
f(x)=f(X
m
–S)
0 (OFF): f(x)=f(S)
Output form
Input form
Number of coordinates
minus one (m–1)
C:
Enter the coordinates of the m+1 end points, which define the m line segments,
as shown in the following table. Enter all coordinates in binary form.
Word
Coordinate
C+1
X
0
C+2
Y
0
C+3
X
1
C+4
Y
1
C+5
X
2
C+6
Y
2
((↓
((↓
C+(2m+1)
X
m
(max. X value)
C+(2m+2)
Y
m
The following example demonstrates the construction of a linear extrapolation
with 12 coordinates. 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.
Address
Instruction
Operands
00000
LD
000000
00001
APR(142)
D00000
0010
0011
Linear Extrapolation
Special Math Instructions
Section 5-23
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...