Share

Using the <include> reserved word

Use the <include> reserved word to prompt the PartMaker user to enter additional information during postprocessing. PartMaker includes the information that the user enters in the NC Program file.

Note: See *Example – Using the <include> reserved word for more information. If you want to use the information that the PartMaker user enters within the NC Program file (for example, to output different text strings or to perform calculations), use the <prompt> reserved word.

Example – Using the <include> reserved word

The following example describes how to add an <include> statement to the DEMO.PST file in your PartMaker/Mill Postlib folder. The DEMO.PST file is a generic Fanuc postprocessor.

Note: If you are using PartMaker Turn only, you can copy the formats below into any of the Post files provided with your PartMaker software.
  1. Start ConfigPost and select File > Open to display the Open dialog.

  2. Double-click DEMO.PST in the Postlib folder to open it.

  3. Select Configure Mill > Process Header Formats.

  4. Enter the following Program Start format to the Post file:

     %<eob>
     :<prog-num1><eob>
     (This job was programmed by {Please enter your name: <include> Programmer})<eob>
     (TOTAL MACHINING TIME: <time-total>)<eob>
     (MACHINING <face-name> FACE)<eob>
     (MACHINING PROCESS <process-id>)<eob>
     {N<seq> }G80 G40 G17<eob>
     {N<seq> }G30 G91 Z0<eob>
     {N<seq> }T<tool-num> M6<eob>
     (<tool-name> <tool-note>)<eob>
     (TIME FOR THIS TOOL: <time-process>)<eob>
     {N<seq> }G90 <work-offset> <motion> X<x-coord> Y<y-coord> S<speed-rpm> <spindle-on><eob>
     {N<seq> }G43 Z<rapid-abs> H<tool-offset> <coolant><eob>
  5. Save and close the Post file.

  6. In PartMaker, with existing .job, .tdb, and .cdb files open, select Job Optimizer > Post Config File= to display the Open Post Configuration File dialog.

  7. Select and open the Post file you saved in Step 5.

  8. Select Job Optimizer > Post Options to display the Post Options dialog.

    image

  9. Select the Stop to Include User Input option, then click OK.

  10. Select Job Optimizer > Generate NC Program to generate an NC Program using the postprocessor.

    As PartMaker performs the postprocessing it displays the Include User Input dialog:

    image

  11. Enter your name in the field to replace the default name (Programmer), then click OK.

    PartMaker includes the name you enter in this dialog in the NC Program file to replace <include> Programmer.

Was this information helpful?