Omron CS1W-MC221 - 02-2008 Operation Manual page 408

Motion control units
Table of Contents

Advertisement

G Language Overview
Specifying Position Data Addresses (A0000 to A1999)
Specifying Registers (E00) to (E31)
Symbol
R
Circle radius
S
Specifies no error when there is no G31 interrupt input.
U (See
U-axis
note.)
X
X-axis
Y
Y-axis
Z (See
Z-axis
note.)
/
Separator
( )
Indirect specification
#
Optional number, system parameter type
*
Comment
Note Not supported by the CS1W-MC221.
It is possible to use the contents of a position data address for position data or
an M code by specifying that address in an operand in an axis movement
command or M code. For example, when the following program is executed,
the contents of A1000 (123.45) will be used for the X-axis data and the con-
tents of A1001 (50) will be used for the M code.
Program block
:
:
N010
G01
:
:
Position data can be specified indirectly by specifying a register (E00) to (E31)
in an axis movement command or M code. The relationship between the reg-
ister and position data contents is shown below.
Register
E00
1000
E01
1001
Registers and position data are not assigned together to each task; they can
be used independently for different tasks.
The contents of registers are all cleared to zero only when power is turned ON
or when a restart is executed. Initialize register contents at the beginning of
the program by executing an command such as the SUBSTITUTION com-
mand (G63). Registers can contain values from 0 through 1999. An error will
occur if a value greater than 1999 is input in a register. The possible range of
values for position data is –39,999,999 through 39,999,999.
Meaning
:
:
XA1000 MA1001
:
:
A1000:
123.35
A1001:
50
Section 7-2
Address
Position data
A0000
0
A0001
0
A1000
123.45
A1001
50
A1999
0
Position data
381

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents