User Commands

The user commands are specified in the ASCII file "user_commands":


/weber/post_formats/post_name/user_commands


The sample "user_command" file for a Lathe is:


STARTUP: pick_type= N template_file= startup ques_file= startup_ques
TOOLCH: pick_type= N template_file= tool_change ques_file= tool_ques
FINISH_PATH: pick_type= P macro_file= turn_contour ques_file= turn_ques
IMPL_PATH: pick_type= P macro_file= impl_contour ques_file= turn_ques
IMPL_FPATH: pick_type= P macro_file= impl_fcontour ques_file= turn_fques
FINISH_FPATH: pick_type= P macro_file= turn_fcontour ques_file= turn_fques
ROUGH_CUT: pick_type= P macro_file= rough_m ques_file= rough_ques
PROFILE: pick_type= P macro_file= pro_contour ques_file= profile_ques
UNDERCUT: pick_type= P macro_file= under_m ques_file= under_ques
FIXED_OD/ID: pick_type= N macro_file= fixed_m ques_file= fixed_ques
FIXED_FACE: pick_type= N macro_file= fixed_fm ques_file= fixed_ques
GROOVE_OD/ID: pick_type= N macro_file= gr_m ques_file= gr_ques
GROOVE_FACE: pick_type= N macro_file= gr_fm ques_file= gr_fques
DRILL: pick_type= N macro_file= drill_m ques_file= drill_ques
PECKDRILL: pick_type= N macro_file= peckdrill_m ques_file= peck_ques
TAP: pick_type= N macro_file= tap_m ques_file= tap_ques
THREAD(G76): pick_type= N macro_file= thr_can_m ques_file= thr_can_ques
RAPID: pick_type= H command  
RAPID_NO_CLNT: pick_type= H macro_file= xtoolac  
FEED: pick_type= H command  
MAN_CODES: pick_type= M command  
END_CODES: pick_type= N macro_file= end_codes ques_file= end_ques
ATHREAD(G33): pick_type= N macro_file= thread_m ques_file= thread_aques
FTHREAD(G33): pick_type= N macro_file= thread_m ques_file= thread_fques

The "user_command" file sets up the command menu and also establishes the valid commands which are executed by the command file.

The entries in the command menu are one of four types:

commands: are functions provided by the system to do specific things.    For example FINISH_PATH will generate the codes to cut whichever is the current path.

macros: are ASCII files which contain a series of command lines.

file= specifies the location of the macro.


templates: are ASCII files which contain tape code patterns.

file= specifies the location of the template.


canned: are the command form of the canned cycle blocks.    For example, the RAPID command uses the RAPID block defined above in output_format in a canned cycle mode.

Some commands have question files associated with them.

ques_file= specifies the location of the question file.


The pick_type specifies the method of graphical selection available to that command. The various pick types are:


N: No graphics pick required.
P: Pick multiple paths and ask start and end points.
p: Pick a single path and ask start and end points.
C: Pick multiple paths.
c: Pick a single path.
H: Pick multiple holes.
h: Pick a single hole.
X: Ask multiple XY locations.
x: Ask a single XY location.
Z: Ask multiple XYZ locations.
z: Ask a single XYZ location.
M: Ask manual codes.