cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Tool Description in place of Tool name in CLSF file

Creator
Creator

Hi

I use CLSF_ADVANCED to generate CLSF file

Is it possible GETto TOOL DESCRIPTION instead of TOOL NAME

 

eg:

 

 

TOOL PATH/TOP_FACING_RUF,TOOL,TS0205M001

 

now TOOL NAME is generated

instead I want to get TOOL DESCRIPTION in this place

 

 

 

4 REPLIES

Re: How to get Tool Description in place of Tool name in CLSF file

Genius
Genius

look at ...\MACH\resource\tool_path\clsf.def and search "BLOCK_TEMPLATE tool_path"

BLOCK_TEMPLATE tool_path {"TOOL PATH/"\nows
                          GM1[$mom_path_name]
                          Tool[$mom_tool_name]}

in clsf.tcl you will find for each TOOL PATH/...

MOM_do_template tool_path

 an advice : make a copy "BLOCK_TEMPLATE" or "clsf.def" and modify

Sorry I don't remember the mom_variable for tool description

@mkn

Re: How to get Tool Description in place of Tool name in CLSF file

Creator
Creator

Thanks

it worked

replaced tool_name with tool_description in clsf.def

Re: How to get Tool Description in place of Tool name in CLSF file

Keep in mind that the TOOL PATH statement is part of the CLSF syntax. Applications that read the CLSF may not handle the description text.

Mark Rief
Retired Siemens

Re: How to get Tool Description in place of Tool name in CLSF file

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

Another option is to create a custom procedure and source the regular CLS output.

 

In this sample below, the following is written after a tool change:

The tool description in the form INFO/'This is a cutting tool'

If a tool has the option -Coolant thru- active, a statement is written in the form INFO/COOLNT,THRU

 Output:

 LOAD/TOOL,12345,ADJUST,1

 INFO/'END MILL D20.0 R2.0 3XD'

 INFO/COOLNT,THRU

In the post (icam's campost) actions can be taken on these INFO statements.

 

source [MOM_ask_env_var UGII_CAM_TOOL_PATH_DIR]clsf_advanced.tcl

#____________________________________________________________
#
# Load Tool
#____________________________________________________________
proc MOM_loadtool {} {
   global mom_load_tool_number
   global mom_tool_adjust_register
   global mom_tool_description
   global mom_tool_coolant_through
 
   if {[info exists mom_load_tool_number] == 1} {
      if {$mom_load_tool_number == 0} {
        MOM_output_literal  "ERROR: No Toolnumber defined"
      } else {   
	    MOM_output_literal  "LOAD/TOOL,$mom_load_tool_number,ADJUST,$mom_tool_adjust_register"
		if { [info exists mom_tool_description] } {MOM_output_literal  "INFO/TOOL,'$mom_tool_description'"}
		if { [info exists mom_tool_coolant_through] == 1 } {
		   if {$mom_tool_coolant_through == Yes} {MOM_output_literal  "INFO/COOLNT,THRU"}
	    }	  
	  }
   }
   catch {unset mom_load_tool_number}
   catch {unset mom_tool_adjust_register}
   catch {unset mom_tool_description}
   catch {unset mom_tool_coolant_through}
}

By sourcing the regular output, this will not be affected by NX updates.

 

Patrick Delisse
KMWE - DutchAero
NX11.0, CAMPOST V22, Vericut 8.0

Learn online





Solution Information