Canned Cycles and Motion Block Setup


This is a list of the different canned cycle switches:


force_full
forceg
modalg
incremental_z The Z will be incremental from the rap level
z_positive The Z will be positive in canned cycles
r_retract
k_retract


Canned cycles and general motion blocks are configured in the output_format file.

canned cycle setup:

RAPID: gcode= 0 rapid std blk= N*G*X*Y*Z
RAPID_Z: gcode= 0 rapid std blk= N*G*Z
POSITION_XY: gcode= 0 rapid std blk= N*G|X|Y
SAFESTART: gcode= 0 rapid std blk= N*G|X|Y|T|S
LINEAR: gcode= 1 feed std blk= N*G*X*Y*Z*F
FEED: gcode= 1 feed std blk= N*G*X*Y*Z*F
CIRCLE_CW: gcode= 2 feed std blk= N*G*X*Y*Z*I*J*K*F
CIRCLE_CCW: gcode= 3 feed std blk= N*G*X*Y*Z*I*J*K*F
HELIX_CW: gcode= 2 feed std blk= N*G*X*Y*Z*I*J*K*F
HELIX_CCW: gcode= 3 feed std blk= N*G*X*Y*Z*I*J*K*F
ROTARY_POS: gcode= 0 rapid std blk= N*G*X*Y*Z*B
ROTARY_FEED: gcode= 1 feed std blk= N*G*X*Y*Z*B*F
DCOMP_ON: gcode= 1 feed std blk= N*G*g*X*Y*Z*D*F
DCOMP_OFF: gcode= 1 feed std blk= N*G*g*X*Y*Z
CANCEL: gcode= 80    rapid std blk= N*G*X*Y*Z
CANNED_OFF: gcode= 80 rapid std blk= N*G*X*Y*Z
PECK_DRILL2: gcode= 73 canned    std blk= N*G*X*Y|R|Z*Q*F
COUNTERTAP: gcode= 74 canned std blk= N*G*X*Y|R|Z
BORE(G76): gcode= 76 canned std blk= N*G*X*Y|R|Z*P*F
DRILL: gcode= 81 canned std blk= N*G*X*Y|R|Z*F
COUNTERBORE:   gcode= 82 canned std blk= N*G*X*Y|R|Z*P*F
PECK_DRILL: gcode= 83 canned std blk= N*G*X*Y|R|Z*Q*F
TAP: gcode= 84 canned std blk= N*G*X*Y|R|Z*F
BORE(G85): gcode= 85 canned std blk= N*G*X*Y|R|Z*F
BORE(G86): gcode= 86 canned std blk= N*G*X*Y|R|Z*F
BORE(G87): gcode= 87 canned std blk= N*G*X*Y|R|Z*F
BORE(G88): gcode= 88 canned std blk= N*G*X*Y|R|Z*P*F
BORE(G89): gcode= 89 canned std blk= N*G*X*Y|R|Z*P*F
CDRILL: gcode= 61 canned std blk= N*G*X*Y|R|Z*F


The above is the canned cycle block setup for a fanuc 10M.

The commands:


RAPID:
LINEAR:
FEED:
CIRCLE_CW:
CIRCLE_CCW:
CANCEL(G80):


are fixed and only the gcode and std blk configuration may be changed.    These commands represent standard motions in the system.

The remainder are user configurable.    Up to 50 cycle blocks are allowed.

The commands rapid, feed, and canned define the motion type for each block.    Rapid means a positioning block.    Feed will mean a feeding motion.    Canned refers to built in machine canned cycles.

The block format is described in terms of the letter addresses.

std blk= N*G*X*Y|R|Z|*F gives the order of the words of the block.    The * is a separator, the | functions as a separator and also to indicate the words which must be repeated whenever the G word is output.    In general if a word is modal then it will not be repeated in subsequent blocks.

Whenever the R and Z words or there equivalent are changed, the gcode for the canned cycle will be re-established, unless the modalrz switch is set.

By inserting an "&" in the std blk the canned block will be broken up into two separate blocks:

N*G*X*Y&R*Z*F

for example could appear as:

N10 G81 X2 Y2
N20 R.1 Z-.5 F2.5