425
G-language Commands
Section 7-3
Programming Example
The following example shows calling a subroutine
.
:
:
N010
G72
P500
:
:
Up to six loops can be created by calling subroutines, as shown in the follow-
ing diagram.
7-3-26 G73: SUBROUTINE END
Ends the subroutine.
Format
G73
Operands
None
Description
This command ends the subroutine and returns control to the block after the
one that called the subroutine. This command must be programmed at the
end of every subroutine.
Programming Example
N000
P510
XYZ
:
:
:
:
:
:
N100
G73
7-3-27 G74: OPTIONAL END
Ends the block currently being executed when the specified optional input
goes ON.
Format
G74
@
<optional number>
Operands
The following table shows the possible settings for the operands.
Description
If the specified input is received while the block after the one with this com-
mand is being executed, execution of that block will be interrupted and the
program will proceed to execute the following block.
If an axis operation is being executed, the operation will be decelerated to a
stop before proceeding to the next block. If a DWELL TIMER (G04) command
is being executed, the command will be interrupted and the remaining time
cancelled.
Up to five subroutines are possible.
Counting the main program, up to six loops can be created with G70.
Operand
Possible settings
Optional number
00 to 19
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 ...