Omron CQM1H - PROGRAM Programming Manual page 371

Programmable controllers; inner boards
Table of Contents

Advertisement

Special Math Instructions
Y
Y
m
Y
4
Y
3
Y
1
Y
2
Y
0
X
0
00000
DM 0000
DM 0001
DM 0002
DM 0003
DM 0004
DM 0005
DM 0006
DM 0025
DM 0026
346
Enter the coordinates of the m+1 end-points, which define the m line seg-
ments, as shown in the following table. Enter all coordinates in BIN form.
Always enter the coordinates from the lowest X value (X
X
is 0000, and does not have to be entered.
0
X
X
X
X
1
2
3
4
If bit 13 of C is set to 1, the graph will be reflected from left to right, as shown
in the following diagram.
Y
X
0
The following example demonstrates the construction of a linear approxima-
tion with 12 line segments. The block of data is continuous, as it must be, from
DM 0000 to DM 0026 (C to C + (2 × 12 + 2)). The input data is taken from IR
010, and the result is output to IR 011.
Content Coordinate
$C00B
$05F0
X
12
$0000
Y
0
$0005
X
1
$0F00
Y
1
$001A
X
2
$0402
Y
2
$05F0
X
12
$1F20
Y
12
C+1
C+2
C+3
C+4
C+5
C+6
C+(2m+1)
C+(2m+2)
X
X
m
X
X
m
Address Instruction
APR(−−)
00000
DM 0000
00001
010
011
Bit
15
1 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1
(Output and
input both BIN)
Section 5-23
) to the highest (X
1
Word
Coordinate
X
(max. X value)
m
Y
0
X
1
Y
1
X
2
Y
2
X
m
Y
m
Y
X
m
Operands
LD
APR(−−)
DM
Bit
00
(m−1 = 11: 12 line
segments)
).
m
X
X
0
00000
0000
010
011

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF