Expert Machinist > Tool Path Display and Output > To Insert a CL Command
  
To Insert a CL Command
You can insert a customized CL command anywhere along the tool path. Use this functionality to add the specific postprocessor words required for correct NC output.
 
* If you want the customized CL command to be located before or after a specific event on the tool path (for example, before each pass, or after the final retract), and to maintain its location even if the tool path changes, use the Automatic Command Placement functionality. You can access it through the Tool Path Properties dialog box. For more information on using the Automatic Command Placement functionality, follow the link under See Also.
1. Click NCL File > Insert CL Command.
The CL Command dialog box opens.
2. To select location for the CL command, click and select either a point on the tool path on the screen or a line in the CL file listing.
3. Specify the command contents using one of the following methods:
Place the cursor in the Command text box and type the command, line-by-line. Note that this method does not provide syntax checking.
Click Menu and compose the command by selecting appropriate keywords from the syntax menus and typing values in response to the system prompts.
Click File and read in a file containing the CL command lines. The browser window will appear to let you select the file name. The expected file extension is .cmd.
 
You can edit the contents of the Command text box at any point by placing the cursor in it and using the keyboard.
If you supply more than one command line, they will be treated as a "block", that is, you will be able to move, copy, or delete only the whole block of command lines.
4. The Preview button inserts the command line(s) in the CL file at the selected location to let you preview the result. Click OK to insert the command at selected location, Cancel—to quit inserting the command.