NX How to trigger post to output broken tool check

2021-10-06T23:27:32Z
NX for Manufacturing

Summary


Details

Post needs to output a canned probe routine to check for a broken tool at the end of every operation that uses a 3/8" or smaller tool.

Code string needs to be of the format:
  G65P9853B1.TnnH.01
where nn is the tool number in use by the current operation.

Solution

Create a new custom command in the End of Path event at the desired location for this code string to be written.  A simple method of checking the tool diameter to determine whether to output this string is shown below.  Note that the final output is assembled as a sequence of strings (variables) because tcl was having trouble parsing the mix of letters and numbers with no spaces between words in the block.  

================================================
global mom_tool_diameter
global mom_tool_number

if { $mom_tool_diameter <= 0.375 } {
   set part1 "G65P9853B1.T"
   set part2 "H.01"
   MOM_output_literal "$part1$mom_tool_number$part2"
   }
================================================


If the tool diameter passes the size check, the post produces a line like this for example tool 5:
  G65P9853B1.T5H.01



Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V12.0.2
Function: POSTBUILDER

Ref: 002-8016292

KB Article ID# PL8016292

Contents

SummaryDetails

Associated Components

Manufacturing Post Builder