User Defined Command Words

The standard block setup provides the means for user defined command words which may call machine canned cycles or define single block motion words.

For example, in the canned cycle setup portion of the output_format file we define the standard drilling canned cycle as:

PECK_DRILL:gcode= 83 canned std blk= N*G*X|R|Z*Q*F

In the command menu setup in the user_commands file we define the menu entry for this command as:

PECK_DRILL: pick_type= N macro_file= peckdrill_m ques_file= peck_ques

Once these two entries have been made in the appropriate files the word PECK_DRILL has been added to the set of commands.    TurboPost will now understand lines like:

PECK_DRILL: Start_hole=5; End_hole=3;
PECK_DRILL: X= 3.5; Y= -1.5;

How to Add a User Command Word

As an example of how to create a user defined command word let us assume that we are dealing with an NC machine which has a W axis parallel to the Z axis which serves to minimize the spindle extension.

We want to define a command word which will position this axis at a rapid traverse rate.

In the canned cycle setup portion of the output_format file we define the block motion as:


WRAPID: gcode= 0 rapid std blk= N*G*W


In the user_commands file we define the menu command:


WRAPID: pick_type= N canned ques_file= waxis_ques


The "canned" here refers to the fact that the command is defined in the canned cycle setup portion of the output_format file.

The question file associated with this command must be sure to assign the appropriate value to the W word so that it can be placed in the block.