M Code Outputs; Introduction - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

M Code Outputs

Format
Operands
Description
Programming Example
7-4
M Code Outputs
7-4-1

Introduction

Format
G91
None
This command specifies that positioning axis operations are performed rela-
tive to the present position. After this command is executed, the coordinate
data in axis movement commands is treated as the distance to be moved from
the present position.
In addition to G91, the incremental coordinate system is put into effect when a
REFERENCE ORIGIN RETURN (G26), WORKPIECE ORIGIN RETURN
(G27), or ORIGIN SEARCH (G28) command is executed.
The following example shows positioning with incremental coordinate data.
:
N010
G91
N011
G01
N012
G01
:
Y
70
50
20
If positioning with incremental specification is interrupted by a pause com-
mand, 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 per-
formed after the operation was interrupted, the axes will still be moved to the
original end position.
Example 1
Continued operation
Moved
manually
Interruption
M codes consist of information used to interlock with external devices in posi-
tioning operation processes. External devices are devices directly connected
to the general outputs of the CPU Unit and MC Unit.
M<M code>
:
X50
Y50
F100
X100
Y20
:
The axis operation would be performed
on this path with absolute specification.
50
100
Example 2
Origin
Section 7-4
X
150
Interruption
Origin search
Continued operation
431

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents