Cancel
Showing results for 
Search instead for 
Did you mean: 

Switch back to master post without using "Head" start event

Hello,

 

I have a CAM program that requires two different sets of post processors. Most of my operations are processed by the main post processor, main.pui, and some special operations are processed by another postprocessor, slave.pui. 

 

I understand that I can create a start event and specify a "HEAD"  pointing to the post I want, for an operation. Or I can create a "Method" node, specify a "HEAD" and place all the relevant operations under that "Method" node.

 

After using the slave post for those special operations, I want to switch back to the master post.  Do I have to create a "HEAD" pointing to the master post for all the those "normal" operations? 

 

I am open to editing the TCL files. But I am not sure which "Proc" is relevant.

 

Thanks in advance.

 

Steph

2 REPLIES 2

Re: Switch back to master post without using "Head" start event

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

If this is mill vs. turning, you can use 

 

#=============================================================
# Switch mode - mill vs turn
proc PB_machine_mode { } {
#=============================================================
	global mom_machine_mode
	# use mom_machine_mode to switch posts
}

If you create a simple mill-turn (XZC) post in PB and Machine tool tab -> General parameters -> "Machine mode" block check the "simple mill turn" option (radio button) & save the post, you can look for the above proc in the /tcl & see how it is done.

 

Another option (I think this will work)

Add your "Head" UDE to the start events of a "Method" to switch to the other post

Add another "Head" UDE (with the "main" post head name) to the *END* events of that same method to switch back to the main post.

That way you don't have to add the Head UDE to *all* the other methods...

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Highlighted

Re: Switch back to master post without using "Head" start event

Phenom
Phenom

Dont forget methods can be childern of other methods, this way there are only 2 place where The HEAD UDE is required.

 

Method Head 1 (Head 1 UDE)

  • Method Rough
  • Method Semi
  • Method Finish

Method Head 2 (Head 2 UDE)

  • Method Rough
  • Method Semi
  • Method Finish

That being said I prefer auto selection of Head based on mom_machine_mode.

Learn online





Solution Information