EasyManua.ls Logo

Omron C200H-MC221 - M-Code Outputs; Introduction

Omron C200H-MC221
305 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Omron C200H-MC221

Related product manuals