The user commands are specified in the ASCII file "user_commands":
/usr/weber/post_formats/post_name/user_commands
The sample "user_command" file for a fanuc 10M is:
| STARTUP: | pick_type= N | template | file= startup | ques_file= startup_ques |
| TOOLCH: | pick_type= N | template | file= tool_change | ques_file= tool_ques |
| CUT_CONTOUR: | pick_type= P | macro | file= cut_contour | ques_file= contour_ques |
| ROUNDCUT: | pick_type= H | macro | file= round_cut | ques_file= round_ques |
| CUTSURF: | pick_type= S | macro | file= cut_surface | ques_file= surface_ques |
| CLAMP_AVOID: | pick_type= N | macro | file= clamp_avoid | |
| DRILL: | pick_type= H | canned | ques_file= drill_ques | |
| PECK_DRILL: | pick_type= H | canned | ques_file= peck_ques | |
| COUNTERBORE: | pick_type= H | canned | ques_file= bore_ques | |
| TAP: | pick_type= H | canned | ques_file= tap_ques | |
| BORE(G85): | pick_type= H | canned | ques_file= bore_ques | |
| BORE(G86): | pick_type= H | canned | ques_file= bore_ques | |
| BORE(G87): | pick_type= H | canned | ques_file= bore_ques | |
| BORE(G88): | pick_type= H | canned | ques_file= bore_ques | |
| BORE(G89): | pick_type= H | canned | ques_file= bore_ques | |
| BORE(G76): | pick_type= H | canned | ques_file= bore_ques | |
| COUNTERTAP: | pick_type= H | canned | ques_file= tap_ques | |
| END_CODES: | pick_type= N | template | file= end_codes | |
| RAPID: | pick_type= H | command | ||
| FEED: | pick_type= H | command |
For example CUTPATH 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 DRILL command uses the DRILL 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. |
| G: | Pick a path group. |
| S: | Pick a 3D cutter path. |
| F: | Assign a pick_file or script to be use with this cycle.
The pick_files are found in /usr/weber/ascrpt/turbopost.d. |
| R: | Pick a Ruled surface only used for 4 axis wire programming. |