Share

Logical and System Reserved Words

Logical and system reserved words are used together to set up conditional statements in a Post file. PartMaker includes or omits certain data from a program depending on whether a conditional statement is true or false.

  • If a conditional statement is true, PartMaker includes certain sections of the program format in the part program. The format is:

    <IF> <Logical reserved word><THEN>
    ........
    <ENDIF>

    Example

      <IF><CW-SPINDLE><THEN>
      M3
      <ENDIF>
  • If a conditional statement is false, certain data from the program format is omitted. The format is:

      <IFNOT><Logical reserved word><THEN>
      .......
      <ENDIF>

    Example 1

      <IFNOT><CW-SPINDLE><THEN>
      M4
      <ENDIF>
      <IFNOT><Logical reserved word><THEN>
      .......
      <ENDIF>

    Example 2

      <IFNOT><CW-SPINDLE><THEN>
      M4
      <ENDIF>

Examples

Here are examples of conditional statements that use one of the mathematical comparison routines:

<IF><smaller>(3,4)<THEN>
THREE IS LESS THAN FOUR<eob>
<ENDIF>

<IF><larger>(<tool-num>,26) <THEN>
THIS TOOL NUMBER IS LARGER THAN 26<eob>
<ENDIF>

The following conditional statement can be used to prompt the milling machine operator to turn the part over and press the cycle start button:

<IF><face-ang-chg><THEN>
G0 Z<tool-change-z> M9<eob>
Y<tool-change-z> M5<eob>
M0<eob>
(PLEASE TURN THE PART OVER)<eob>
(AND PRESS THE CYCLE START BUTTON)<eob>
G0 Y<y-coord><eob>
Z<z-coord><eob>
<ENDIF>

Was this information helpful?