PROGRAMMING EXAMPLES
22996-8000
June 1999
MODIFYING C ANNED C YCLES
In this section we will cover canned cycles that have to be customized in order to make the programming of
difficult parts easier. In result, making the machining process more efficient.
Using G98 and G99 to clear clamps:
For example, we have a square part being held to the table with one inch tall table clamps. We need to write a
program to clear the table clamps.
PROGRAM EXAMPLE DESCRIPTION
%
O4500
T1 M06
G00 G90 G54 X1.0 Y-1.0 S3500 M03
G43 H01 Z1.125 M08
G81 G99 Z-1.500 F20. R.05
X2.0 G98 ( Will return to starting point after executing cycle )
X6.0 G99 ( Will return to reference plane after executing cycle )
X8.0
X10.0
X12.0 G98
X16.0 G99
X18.0 G98
G00 G80 Z2.0 M09
G28 G91 Y0 Z0
M30
%
X,Y Plane Obstacle Avoidance In A Canned Cycle:
So far we have learned how G98 and G99 can be used to avoid an obstacle in the Z-axis. There is also a way
to avoid an obstacle in the X,Y plane during a canned cycle by placing an L0 in a canned cycle line, we can tell
the control to make an X,Y move without executing the Z-axis canned operation.
For example, we have a six inch square aluminum block, with a one inch by one inch deep flange on each
side. The print calls for two holes centered on each side of the flange. We need to write a program to avoid
each of the corners on the block.