The Generic Post Processor generates two types of cycle output, Hardware and Software. A Hardware cycle generates a G-code machine controller cycle, such as a G81 drilling cycle. A Software cycle generates G00, G01 tool motion and is calculated by the postprocessor. All lathe cycles a Software cycles.
In the following cycle command definitions, cycle types that are identified by a hyphen followed by the G-code in the command, such as CYCLE/BORE-85 are Hardware cycles. The G-codes are postprocessor defaults and may be changed in the Configuration Tool.
For canned cycles, the options LOCK,i and CAM,n will be output in the cycle DWELL and CAM registers.
The PULBAC,g option will output an additional G-code with the cycle G-code.
The cycle command is modal and remains in effect for subsequent .INC and CL points until turned off by CYCLE/OFF or a new CYCLE/type command.
It is assumed that the .INC and CL points following the cycle statement will be defined at the work surface. Therefore, rapid positioning will occur to each .INC and CL point plus clearance c. This is output as the rapid stop point. The feed distance will be the sum of the values c and z, which is output as the feed stop point. The values c and z must be positive and relative to the .INC and CL point as follows:

.INC and CL Points and the CYCLE Statement - Lathe

.INC and CL Points and the CYCLE Statement - Mill
The following is an overview of the cycle command structure.
CYCLE/type,z,f,unit,c,optn
type A minor entry to indicate the cycle type.
z The z depth of the desired cycle could be z1 through z20 for certain cycles.
f The feedrate value for the cycle Z axis feed.
unit IPM IPR or MMPM MMPR to specify the units of f.
The terms are interchangeable and do not represent the current mode. INCH or METRIC mode are selected on the MACHIN/ statement. No conversion or validity checking is done.
c The clearance value for rapid stop.
optn Optional parameters given in couplet form for certain cycles. For example, LOCK,1 where l states the dwell time for TAP cycle. These optional values are modal.
CYCLE/type,z,f,unit,c[,sc][,optn]
CYCLE with Secondary Clearance Value
sc The secondary clearance value required by some machines, which can be used on all the canned cycles in the Mill Post Processor.
All other parameters have the same meaning as previously explained.
ON Reinstates the last cycle type.
OFF Terminates the current cycle type.
ON Reinstates the last cycle type.
OFF Terminates the current cycle type.
CYCLE/AVOID
Outputs a G-code to cancel the cycle (G80) and an
M-code (M26) to cause a full retract.
Reinstates the previous cycle G-code.
Example:
Input:
$$ Z DEPTH=1.0,FEED=7.5,IPM,CLEARANCE=.1
CYCLE/BORE,1.0,7.5,IPM,.1
GOTO/0,0
CYCLE/AVOID
GOTO/1,0
GOTO/2,0
Machine Data File Output:
N4G85X.0Y.0R.1Z-1.0F7.5$
N5G80M26$
N6G85X1.0Y.0R.1Z-1.0F7.5$
N7X2.0$
SPSTCMND.chm