381
G Language Overview
Section 7-2
Note
Not supported by the CS1W-MC221.
Specifying Position Data Addresses (A0000 to A1999)
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.
Specifying Registers (E00) to (E31)
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.
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.
R
Circle radius
S
Specifies no error when there is no G31 interrupt input.
U (See
note.)
U-axis
X
X-axis
Y
Y-axis
Z (See
note.)
Z-axis
/
Separator
( )
Indirect specification
#
Optional number, system parameter type
*
Comment
Symbol
Meaning
:
:
:
:
N010
G01
XA1000 MA1001
:
:
:
:
Position data
A0000
0
A0001
0
A1000
123.45
A1001
50
A1999
0
Address
Program block
Register
Position data
E00
1000
A1000:
123.35
E01
1001
A1001:
50
Summary of Contents for CS1W-MC221 -
Page 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Page 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 11: ...xii ...
Page 15: ...xvi ...
Page 19: ...xx ...
Page 27: ...xxviii Conformance to EC Directives 6 ...
Page 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Page 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Page 227: ...200 Command Area Section 3 6 ...
Page 351: ...324 Interface Specifics Section 5 4 ...
Page 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Page 575: ...548 Error Log Section 12 6 ...
Page 589: ...562 Performance Appendix A ...
Page 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Page 683: ...656 Origin Search Patterns Appendix F ...
Page 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...