101
5-5-23 G72: SUBPROGRAM JUMP
Calls the specified subprogram.
Format
G72_<subprogram number>
Parameters
The following table shows the possible settings for the parameters.
Parameter
Possible settings
Subprogram number
P500 to P999
A0000 to A1999
Description
This function calls and executes the specified subprogram. Subprograms can
be nested 5 times. An error will occur if a sixth subprogram is called.
If the subprogram number is set to the number of position data, the subprogram
in the position data will be called and executed.
An error will result if the position data does not satisfy the following condition.
500
x
Position data
x
999
Example Program
:
:
N010
G72
P500
:
:
Up to 6 loops can be created by calling subprograms, as shown in the following
diagram.
Up to 5 subprograms are possible.
Counting the main program, up to 6 loops can be created with G70.
5-5-24 G73: SUBPROGRAM END
Ends the subprogram.
Format
G73
Parameters
None
Description
This function ends the subprogram and returns control to the block after the one
that called the subprogram. This function must be programmed at the end of
every subprogram.
Example Program
N000
P510
XY
:
:
:
:
:
:
N100
G73
G Functions
Section 5-5
Summary of Contents for C200H-MC221 -
Page 1: ...Cat No W315 E1 03 Motion Control Unit C200H MC221 OPERATION MANUAL ...
Page 2: ......
Page 3: ...C200H MC221 Motion Control Unit Operation Manual Details Revised June 2010 ...
Page 4: ...iv ...
Page 6: ...vi ...
Page 10: ......
Page 12: ......
Page 16: ...xvi ...
Page 42: ......
Page 48: ......
Page 196: ......
Page 212: ......
Page 242: ......
Page 258: ......
Page 304: ......