Cancel
Showing results for 
Search instead for 
Did you mean: 

Change postprocessor at operation level.

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hello, I need to postprocess each operation with different postprocessor depending on a UDE at the begining of the operation.

I have tried with the head UDE but it does not work properly at operation level, only if I put the head in the CARRIER.

I need to run the postprocessor at the start of path depending of an UDE (head or other).

 

I'm using PostBuilder. (NX11)

 

Any ideas?

 

Regards

Frank.

6 REPLIES

Re: Change postprocessor at operation level.

Legend
Legend
Place the UDE in the METHOD. Move operations into the method and use the "head" UDE in the method start event.
Glenn Balon
Production: NX 12.0.1.7 MP1 Primarily CAM

Re: Change postprocessor at operation level.

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thank You for the idea. It partially works. Depending the order of the operations, some calculations are not correct.

I have an example with three operations, if one operation is the first, the post and linked posts seems to be OK, but if that operation is the second or third, the results are not OK.

 

The picture of the configuration:

three posts: 1st -> Post 5 axis with AB in head  (HEAD: AB)

                      2nd -> Post 5 axis with A head C table (HEAD: AC)

                      3rd -> Post 5 axis with B head C table. (HEAD: BC)

The main post is the 1st one.

I have a program with three operations, 1st operation with the AC head, 2nd AB and third BC, if the AB operation is the first one in the program all is OK but if the AB operation is the second or third the CNC output is not good.

 

Regards

Frank.

 

Excerpt of the output:

====================================

1st case:

......

* - OPERATION: 15DEGREES - TOOL: T3 PLTO-D52R15R3DP01

.....

M138 A B
13 L M126
14 PLANE SPATIAL SPA+0.0 SPB-15. SPC+0.0 TURN FMAX SEQ+

.....

.....

* - OPERATION: 45DEGREES - TOOL: T2 PLTO-D35R15R3DP01
38 TOOL CALL 2 Z S1530
39 TOOL DEF 6
40 M3 M8
41 L A0 B0 C0 FMAX
42 M138 A C
43 L M126
44 PLANE SPATIAL SPA+22.5 SPB-40.06 SPC+57.235 TURN FMAX SEQ-

........

......

* - OPERATION: ALSO45DREGREES - TOOL: T6 BALL_MILL
82 TOOL CALL 6 Z S0
83 M3 M8
84 L A0 B0 C0 FMAX
85 M138 B C
86 L M126
87 PLANE SPATIAL SPA+0.0 SPB+45. SPC-90. TURN FMAX SEQ+

......

......

 

2nd case:

CYCL DEF 247 Q339=1
6 * - OPERATION: 45DEGREES - TOOL: T2 PLTO-D35R15R3DP01
7 TOOL CALL 2 Z S1530
8 TOOL DEF 3
9 M3 M8
10 L A0 B0 C0 FMAX
11 M138 A C
12 L M126
13 PLANE SPATIAL SPA+22.5 SPB+40.06 SPC-57.235 TURN FMAX SEQ+

.....

.....

* - OPERATION: 15DEGREES - TOOL: T3 PLTO-D52R15R3DP01
51 TOOL CALL 3 Z S1530
52 TOOL DEF 6
53 L B+0.0 A+0.0 C0 FMAX
54 M3 M8
55 M138 A B
56 L M126
57 PLANE SPATIAL SPA+.993 SPB-10.545 SPC-10.729 TURN FMAX SEQ+   ***** BAD PLANE LINE ******
58 L X-24.428 Y-64.906 Z496.993 FMAX
; WARNING: unable to determine valid rotary positions
59 L X-17.106 Y-61.815 Z397.309 FMAX
; WARNING: unable to determine valid rotary positions

.....

......

* - OPERATION: ALSO45DEGREES - TOOL: T6 BALL_MILL
81 TOOL CALL 6 Z S0
82 M3 M8
83 L A0 B0 C0 FMAX
84 M138 B C
85 L M126
86 PLANE SPATIAL SPA+0.0 SPB-45. SPC+90. TURN FMAX SEQ-
87 L X77.782 Y48. Z370.696 FMAX M3

....

.....

===================================

Re: Change postprocessor at operation level.

Legend
Legend

Make a custom command and add the command below to your end of path. It might require some mods but it should reset the kinematics so nothing is left over from the previous post. 

 

Also, the Program Start Sequence only comes from the Main post, If any information is missing when you call the new post, you have to add it to the "head" event in "machine control". 

 

On the posts I have used this on, I make sure there is a METHOD used for ALL of the posts. When going back to Main post make sure you have a METHOD with a start event that calls the main posts "head" name. 

 

On the Start Of Head/End Of Head when calling the posts, you can add a string of text to be able to clearly see if the post is actually being called in the code. I usually add something like, "Beginning Sub Post xxxx".

 

 

#========================================

# Stage for MOM_reload_kinematics

global mom_prev_pos
global mom_pos
global mom_prev_out_angle_pos
global mom_out_angle_pos
global mom_prev_rot_ang_4th
global mom_prev_rot_ang_5th
global mom_rotation_angle

set mom_prev_pos(0) 0.0
set mom_prev_pos(1) 0.0
set mom_prev_pos(2) 0.0
set mom_prev_pos(3) 0.0
set mom_prev_pos(4) 0.0

set mom_pos(0) 0.0
set mom_pos(1) 0.0
set mom_pos(2) 0.0
set mom_pos(3) 0.0
set mom_pos(4) 0.0

set mom_prev_out_angle_pos(0) 0.0
set mom_prev_out_angle_pos(1) 0.0

set mom_out_angle_pos(0) 0.0
set mom_out_angle_pos(1) 0.0

set mom_prev_rot_ang_4th 0.0
set mom_prev_rot_ang_5th 0.0

set mom_rotation_angle 0.0

MOM_reload_variable -a mom_prev_pos
MOM_reload_variable -a mom_pos
MOM_reload_variable -a mom_prev_out_angle_pos
MOM_reload_variable -a mom_out_angle_pos
MOM_reload_variable mom_prev_rot_ang_4th
MOM_reload_variable mom_prev_rot_ang_5th
MOM_reload_variable mom_rotation_angle

MOM_reload_kinematics

 

#========================================

 

 

See my pics. SUB-POST-COMMENT.pngmain_and_sub_post_pic.png

 

 

 

Glenn Balon
Production: NX 12.0.1.7 MP1 Primarily CAM

Re: Change postprocessor at operation level.

Legend
Legend

 

Hell Frank,

 

With Postconfigurator you can define a spezific kinematic for each chain.

 

I configure all my posts for machines with 6 and more axis

 

 

29-11-_2017_11-20-50.png

 

 

 

 

Re: Change postprocessor at operation level.

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thanks Glenn for your help.

 

Finaly I have te post working.

 

Regards

Frank.

Re: Change postprocessor at operation level.

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor
Thanks schauerm3, at this moment I am still using the PB, Post Configurator is my next challenge.

Regards
Frank.

Learn online





Solution Information