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
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...