Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

iTNC530 Plane Spatial 5ax issue

Hi !

i've got a problem with the pp output of multiple operations. (NX10.0.3.5 )

The Problem only occurs when i output a 5ax operation and then a 3ax. 

 

4 L B+0.0 C+0.0 FMAX
5 PLANE RESET STAY
6 CYCL DEF 32.0 TOLERANCE
7 CYCL DEF 32.1 T0.02
8 CYCL DEF 32.2 HSC-MODE:1 TA1
;  ### Operation: 5AX  
9 TOOL CALL 30 Z S0 F250. DL+0. DR-21.
10 L Z-32. R0 FMAX M91
11 PLANE RESET STAY
12 L B-90. C-180. FMAX
13 M128
14 L X153. Y100. FMAX
15 M129
16 PLANE SPATIAL SPA+0.0 SPB-90. SPC-180. TURN FMAX SEQ-
17 L M140 MB MAX
18 L X24. Y-100. FMAX M3 M8
19 L Z153. FMAX
20 L Z103. FMAX
21 L Z100.
22 L X21.
23 L X-221.
.
.
.
37 L X21.
38 L X24.
39 L Z103.
40 L Z153. FMAX
41 PLANE RESET STAY
L Z-32. R0 FMAX M91
L X-1100. Y689. R0 FMAX M91
M9
L B+0.0 C+0.0 FMAX
;  ### Operation: 3AX  
42 PLANE RESET STAY
43 L B+0.0 C-180. FMAX
44 M128
45 L X-124. Y100. FMAX
46 M129
47 L X124. Y-100. FMAX M3 M8
48 PLANE RESET STAY
49 L B+0.0 C-180. FMAX
50 L Z53. FMAX
51 L Z3. FMAX
52 L Z+0.0
53 L X121.
.
.
.
69 L X124.
70 L Z3.
71 L Z53. FMAX
L Z-32. R0 FMAX M91
L X-1100. Y689. R0 FMAX M91
M9
L B+0.0 C+0.0 FMAX
L Z-32. R0 FMAX M91

For any reason the C axis does not reset to 0 so the maschine rotates the C axis by 180° in that case.

 

If i switch the 5 and 3 ax operation it works.

 

Anyone got an idea how to solve that problem ?

 

thanks, regards

wolfgang

NX 10.0.2
PB 10.0.2
Win7 64
2 REPLIES
Solution
Solution
Accepted by topic author wmaierhofer
‎02-08-2017 04:28 AM

Re: iTNC530 Plane Spatial 5ax issue

This is common (and annoying) issue.

To avoid this, use this Custom Command which you will find in most of postprocessors' templates:

PB_CMD_reset_all_motion_variables_to_zero

Add it to "End of Path" event.

 

If you can't find it, here is it's content:

   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
Marek Pawlus, NCmatic

Production: NX 11.0.1
Development: C#, Tcl/Tk, CSE

Re: iTNC530 Plane Spatial 5ax issue

Great, thanks Marek. My PB only hat the global commands in the Custom Command....

 

Output looks good now.

 

regards

wolfgang

NX 10.0.2
PB 10.0.2
Win7 64

Learn online





Solution Information