![background image](http://html1.mh-extra.com/html/omron/c200h-mc221/c200h-mc221_operation-manual_742324127.webp)
107
If positioning with incremental specification is interrupted by a pause command,
the axes will be moved to the original end position after the operation is
restarted. Also, if the axes have been moved or an origin search was performed
after the operation was interrupted, the axes will still be moved to the original end
position.
Interruption
Moved
manually
Continued operation
Origin
Interruption
Origin search
Continued operation
Example 1
Example 2
5-6
M-code Outputs
5-6-1 Introduction
M codes consist of information used to interlock with external devices in posi-
tioning operation processes. External devices are devices connected to the PC.
Example Program
The following program shows a practical example of M code usage.
N000
P100
X
Declares the program number.
. . . . . . . . . . . .
N001
G01
X100
F100
Moves to 100 mm on the X-axis by linear
.
interpolation.
N002
M100
Outputs M code 100 to the PC and waits
. . . . . . . . . . . . . . .
for OK to perform the next operation.
Proceeds to next block when the M-code
reset is received from the PC.
N003
G01
X0
Moves to 0 mm on the X-axis by linear
. . . . . . . . . . .
interpolation.
N004
G79
Declares the end of the program.
. . . . . . . . . . . . . . . . .
Timing Chart
The following diagram shows the timing of the example program’s execution.
The axis being started, M strobe, M code, and M code reset are provided in the
PC data area interface.
X-axis operation
Outputs from
the MC Unit
M strobe
M code
Command
from the PC
M code reset
Axis being
started
Explanation
The following list provides a running explanation of the program’s execution.
1, 2, 3...
1. In block N001, the X-axis is moved to 100 mm by linear interpolation.
2. In block N002, M code 100 is output after the X-axis positioning is com-
pleted; the M strobe is turned ON at the same time to indicate that the M
code has been set.
M-code Outputs
Section 5-6
Содержание C200H-MC221 -
Страница 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Страница 2: ......
Страница 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Страница 4: ...iv ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 16: ...xvi ...
Страница 42: ......
Страница 48: ......
Страница 196: ......
Страница 212: ......
Страница 242: ......
Страница 258: ......
Страница 304: ......