Changes to Def Files for Fanuc and Similar Posts

For typical Fanuc-like postprocessors, add the following 4 block templates to the definition file. Apart from the elements defined in the block templates, you can add or delete some of the elements from the block templates. The sample turbo post named mill3ax_turbo is available in the /mach/resources/postproessor directory of a standard NX installation.

  BLOCK_TEMPLATE circular_move_turbo

       {

           G_cutcom[^sys_cutcom_code(CUTCOM_STATUS)]\opt

           G_plane[^sys_cutcom_plane_code(CUTCOM_PLANE)]\opt

           G_motion[^sys_circle_code(ARC_DIRECTION)]

           G_mode[^sys_output_code(OUTPUT_MODE)]

           X[^POSX]

           Y[^POSY]

           Z[^POSZ]

           I[^CENTERX]

           J[^CENTERY]

           K[^CENTERZ]

           F[^FEED]\opt

           S[^SPINDLE_SPEED]

          M_spindle[^sys_spindle_direction_code(SPINDLE_DIRECTION)]\opt

       }

        BLOCK_TEMPLATE linear_move_turbo

       {

          G_cutcom[^sys_cutcom_code(CUTCOM_STATUS)]\opt

          G_plane[^sys_cutcom_plane_code(CUTCOM_PLANE)]\opt

          G_motion[^sys_linear_code]

          G_mode[^sys_output_code(OUTPUT_MODE)]

          X[^POSX]

          Y[^POSY]

          Z[^POSZ]

          F[^FEED]\opt

          S[^SPINDLE_SPEED]

          D[^cutcom_adjust_register]\opt

          M_spindle[^sys_spindle_direction_code(SPINDLE_DIRECTION)]\opt

          M_coolant[^sys_coolant_code(COOLNT_STATUS)]\opt

       }

       BLOCK_TEMPLATE rapid_move_turbo

      {

         G_adjust[^sys_adjust_code]

         G_motion[^sys_rapid_code]

         G_mode[^sys_output_code(OUTPUT_MODE)]

         X[^POSX]

         Y[^POSY]

         Z[^POSZ]

         S[^SPINDLE_SPEED]

         H[^tool_adjust_register]\opt

         M_spindle[^sys_spindle_direction_code(SPINDLE_DIRECTION)]\opt

      }

        BLOCK_TEMPLATE sequence_number_turbo

       {

          N[^SEQNUM]

       }