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
Summary of Contents for C200H-MC221 -
Page 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Page 2: ......
Page 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 16: ...xvi ...
Page 42: ......
Page 48: ......
Page 196: ......
Page 212: ......
Page 242: ......
Page 258: ......
Page 304: ......