Canned Cycles and Motion Block Setup

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*Z
LINEAR: gcode= 1 feed std blk= N*G*X*Z*F
CIRCLE_CW: gcode= 2 feed std blk= N*G*X*Z*I*K*F
CIRCLE_CCW: gcode= 3 feed std blk= N*G*X*Z*I*K*F
PECK_DRILL: gcode= 83 canned std blk= N*G*X|R|Z*Q*F
TAP: gcode= 84 canned std blk= N*G*X*Z|k

The above is the canned cycle block setup for a Lathe.

The commands:


RAPID:
LINEAR:
CIRCLE_CW:
CIRCLE_CCW:


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, canned define the motion type for each block.    Rapid means a positioning block.    Canned refers to built in machine canned cycles.

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

std blk= N*G*X|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.