Into our working environment, we work with different machines : 4 with 3 axis and 1 with 4 axis. The thing is that our "toolpath designer" worked on a program for a 4 axis but when he posted it with the post processor, he choose a .pui for a 3 axis machine.
So my question is : how to make validation in the 3 axis machine .pui file to detect that the head is not in a vertical position (0 degree). So if the head have an angle, stop the post processor. I've tried to check some mom variable but for most of them, as the pui file is configured for a 3 axis machine, the angle variable for the head causes error in the post...
I hope I am clear enough.
Thanks in advance for your help.
Solved! Go to Solution.
Forget about editing pui.
when you want to validate motion in 3ax postprocesor you have to do it in tcl - ofcourse via Postbuilder (!)
(PUI - only call tcl, def and tells to postbuilder what you will see from tcl,def)
Thanks Gears Phenom,
I didn't explain right. What I ment is, when I work in Post Builder in TCL, is there a way to identify if the toolpath we created with NX is based on a 4 axis machine in a post for a 3 axis machine? I've checked lots of mom variables but those I've checked caused the post processor to stopped with errors in my 3 axis post processor...
In initial_move and first_move you can check the variable mom_tool_axis.
If mom_tool_axix(2) is less than 1.000 then you have a tool or part rotation.
Another question relatively to your solution. Is there a reason why you use it into initial_move and first_move. Will it be reliable to use this mom variable in the Start_of_Program? I'm asking because the earlier I can identify the problem, the faster I can stop the post process.
It is because the variable is not defined (or if is defined, it is not guaranteed to be correct) until the initial or first move event.
The difference in timing is (from my experience) not great enought to matter.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled