PROGRAMMING EXAMPLES
24196-8000
June 1999
The subprogram must define a closed area by a series of G01, G02, or G03 motions on X- and Y-axes, and
must end with an M99. The only other codes that can be used in the subprogram are: G90, G91, I, J, R, X, and
Y. Any other codes are ignored. This subprogram must not exceed 20 strokes.
Note: When defining the contour in the subprogram, the idea to keep in mind is to
only connect the contour îš— not to return to the starting point.
G150 EXAMPLES -
ABSOLUTE SUBPROGRAM: INCREMENTAL SUBPROGRAM:
%%
O0500 O0500
G01 Y2.0 G01 G91 Y2.0
X-2.0 X-2.0
Y-2.0 Y-4.0
X2.0 X4.0
Y2.0 Y4.0
X0 G90
M99 M99
%%