Omron SYSMAC C200HS Operation Manual page 251

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Special Math Instructions
Y
Y
Y
Y
Y
Y
00000
DM 0000
DM 0001
DM 0002
DM 0003
DM 0004
DM 0005
DM 0006
DM 0025
DM 0026
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 BIN form. Always enter
the coordinates from the lowest X value (X
does not have to be entered.
Y
m
4
3
1
2
0
X
X
X
X
X
0
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 approximation
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
1
X
X
m
X
X
m
Address Instruction
APR(69)
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-21
) to the highest (X
). X
m
0
Word
Coordinate
C+1
X
(max. X value)
m
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
C+(2m+2)
Y
m
Y
X
m
Operands
LD
APR(69)
DM
Bit
00
(m–1 = 11: 12 line
segments)
is 0000, and
X
X
0
00000
0000
010
011
241

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents