Omron C200HX Operation Manual page 283

Hide thumbs Also See for C200HX:
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
C+1
C+2
C+3
C+4
C+5
C+6
C+(2m+1)
X
C+(2m+2)
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
is 0000, and
m
0
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(69)
DM
Bit
00
(m–1 = 11: 12 line
segments)
X
X
0
00000
0000
010
011
265

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents