G73: Subroutine End; G74: Optional End - Omron CS1W-MC221 - 02-2008 Operation Manual

Motion control units
Table of Contents

Advertisement

G-language Commands
Programming Example

7-3-26 G73: SUBROUTINE END

Format
Operands
Description
Programming Example

7-3-27 G74: OPTIONAL END

Format
Operands
Description
The following example shows calling a subroutine.
:
N010
G72
:
Up to six loops can be created by calling subroutines, as shown in the follow-
ing diagram.
Counting the main program, up to six loops can be created with G70.
Ends the subroutine.
G73
None
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.
N000
P510
:
:
:
N100
G73
Ends the block currently being executed when the specified optional input
goes ON.
G74@<optional number>
The following table shows the possible settings for the operands.
Operand
Optional number
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.
:
P500
:
Up to five subroutines are possible.
XYZ
:
:
:
00 to 19
Section 7-3
Possible settings
425

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents