407
G-language Commands
Section 7-3
Example 1:
G31
X100
F200
Example 2:
G31
X100
F200
F100
Example 3:
G31
X100/200
F200
Operands
The following table shows the possible settings for the operands.
Coordinate Data 1 is the travel distance after the interrupt, and Coordinate
Data 2 is the maximum travel distance before the input is received.
Set Speed Reference 1 to a higher value than Speed Reference 2.
Note
Refer to
7-4 M Code Outputs
for details on M codes, and to
7-4-9 D Code Out-
puts
for details on D codes. Refer to
7-4-10 Stopover Function
for details on
the stopover function.
Description
The specified axis will be moved for the specified distance for positioning after
the general input (1 to 4) is turned ON. It is also possible to specify a travel
distance for when no general input is received to stop with an error (program
execution interrupted) after positioning. An S option can also be used to exe-
cute the next block without an error occurring.
Refer to the following examples.
Example 1:Speed Reference 2 Not Specified
G31 X100 F200 (mm)
The X axis moves at 200 mm/s (speed control) until General Input 1 is turned
ON. The X axis then moves for another 100 mm (position control) from the
position where General Input 1 was turned ON.
Operand
Possible settings
Axis movement
command
Axis names
X, Y, Z, U
Coordinate Data 1
Coordinate Data 2
–39,999,999 to +39,999,999
(E00) to (E31)
A0000 to A1999
Speed Reference 1
Speed Reference 2
0.0001 to +39,999,999
(E00) to (E31)
A0000 to A1999
M code
000(0) to 999
(E00) to (E31)
A0000 to A1999
D code
000(0) to 255
(E00) to (E31)
A0000 to A1999
Stopover
Axes
X, Y, Z, U
Coordinate data
0 to 39999999
(E00) to (E31)
A0000 to A1999
Time
General Input 1
X-axis speed
200
0
Speed control
Position control
(for 100 mm)
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 ...