cancel
Showing results for 
Search instead for 
Did you mean: 

before tool change

Creator
Creator

親愛的先生

我的問題是如何編程TCL當我完成最後的程序通過執行一些運行。如果兩個過程通過一個相同的工具,我想忽略一些運行

 

 

2017-03-03_16-54-37.jpg

 

2017-03-03_16-55-08.jpg

4 REPLIES

Re: before tool change

Genius
Genius

Sorry , i don't understand

You want to ask for a question before tool changing , if yes PB_CMD.... else do something...

I'm wrong ?

@mkn

Re: before tool change

Creator
Creator

Yes, so what the steps should i follow before tool changing?

Re: before tool change

Genius
Genius

I am not a expert in post-processor, I can only guide you in the way of making a question. In my opinion your :

proc PB_CMD.... {} {}

should be called in :

proc tool_changing {} {}

and not in :

proc end_of_path {} {}

like this :

proc tool_changing {} {

PB_CMD....

MOM_output_literal "Stop..."
MOM_output_literal "tool_changing"
MOM_output_literal "Go..."

}

to ask a question , you must call TK, look this way : \MACH\auxiliary\mom_pause.tcl there are examples

I would do like that :

proc tool_changing {} {

set response [exec ${cam_aux_dir}ugwish ${cam_aux_dir}mom_pause.tcl {PB_CMD or not...} {You want to execute this proc ?}]

   if {$response  == "ok"} {
    PB_CMD....
         } else {
            # Do something
         }

MOM_output_literal "Stop..."
MOM_output_literal "tool_changing"
MOM_output_literal "Go..."

}

 

I hope this helps...

@mkn

Re: before tool change

Creator
Creator

Dear sir

I try it,thank you

Learn online





Solution Information