Showing results for 
Search instead for 
Do you mean 
Reply

4th axis output of A90 and A270 vs A90 and A-90

I have an old post that outputs the 4th axis rotation of A90 and A-90.  I have a newer post that has more functionality so I would like to use it.  The only problem is when posting the same program I get A output of A90 and A270.  This makes the part do a complete rotation and will cause the part to rotate into the table during rotation.

 

I opened up the post as see a lot of PB_CMD in the new post.

 

My question is what determines the rotation? I would like it to be shortest path as most of our parts ae run A0, A90, A-90.

 

I have tried axis limit min max. no change in the output.  Also tried magnitude vs sign.

 

Thanks, DamianA_rot.JPG

Damian Forsythe
Impact Manufacturing Group
NX 10.0.3.5
9 REPLIES

Re: 4th axis output of A90 and A270 vs A90 and A-90

1) What are the axis limits of the A rotary axis, old vs. new post?

 

2) Are there any UDEs that might change the axis limits, supported by the old post and not by the new post?

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


Re: 4th axis output of A90 and A270 vs A90 and A-90

PB V 10.0.3

 

Axis limits are set to max = 360 min = -360 in both post.  I have tried to set them to 90 and -90 and other values still nothing changes.  its being overiden somewhere else.

 

neith post use any UDE for rotation.

Damian Forsythe
Impact Manufacturing Group
NX 10.0.3.5

Re: 4th axis output of A90 and A270 vs A90 and A-90

I do see three PB_CMD that all say somthing about rotate.   does anythng look weird in them?

 

global mom_out_angle_pos
global mom_init_pos
global csys_gohome_flag
global mom_pos
global mom_prev_pos

if ![info exists csys_gohome_flag] {set csys_gohome_flag "FALSE"}
if {$csys_gohome_flag == "TRUE"} {
   MOM_output_literal "G91 G28 Z0"
   PB_CMD_fixture_output_extended
   set mom_out_angle_pos(0) $mom_init_pos(3)
   set mom_pos(3) $mom_init_pos(3)
   MOM_do_template fourth_axis_unclamp
   PB_CMD_fourth_axis_rotate_move
   set mom_prev_pos(3) $mom_init_pos(3)
   MOM_do_template fourth_axis_clamp
   MOM_force once G_adjust H Z
   MOM_do_template first_move_1_do_not_change
   MOM_do_template first_move_2_do_not_change
   set csys_gohome_flag "FALSE"
} else {
  PB_CMD_fixture_output_extended
  PB_CMD_fourth_axis_rotate_move
}

 

 

 

global mom_out_angle_pos
global mom_init_pos
global mom_pos
global mom_prev_pos
global mom_sys_auto_clamp
global clamp_rotary_fourth_status
global exists mom_kin_coordinate_system_type

   if { ![info exists mom_sys_auto_clamp] || ![string match "ON" $mom_sys_auto_clamp] } {
return
   }

   if { ![info exists mom_kin_coordinate_system_type] || [string match "MAIN" $mom_kin_coordinate_system_type] } {
return
   }

   set mom_out_angle_pos(0) $mom_init_pos(3)
   set mom_pos(3) $mom_init_pos(3)
   PB_CMD_unclamp_fourth_axis
   PB_CMD_fourth_axis_rotate_move
   PB_CMD_clamp_fourth_axis
   set clamp_rotary_fourth_status "CLAMPED"
   set mom_prev_pos(3) $mom_init_pos(3)

 

 

global csys_gohome_flag

  set csys_gohome_flag "FALSE"

 

 

 

 

Damian Forsythe
Impact Manufacturing Group
NX 10.0.3.5

Re: 4th axis output of A90 and A270 vs A90 and A-90

change your Axis Limits to 0-360

Re: 4th axis output of A90 and A270 vs A90 and A-90

sorry
set to -180 to 180

Re: 4th axis output of A90 and A270 vs A90 and A-90

I have already tried that.  it has no affect on the output.axis_limit.JPGaxis_limit-2.JPG

Damian Forsythe
Impact Manufacturing Group
NX 10.0.3.5

Re: 4th axis output of A90 and A270 vs A90 and A-90

I believe that mom_init_pos is available to look ahead a little at the effect of a new kinematic. Do you have head or kinematic switching on this machine?

NX10.03
Windows 7 Pro

Re: 4th axis output of A90 and A270 vs A90 and A-90

Or maybe it has something to do with csys type mcs. One of those two. I encountered a siemens written post that used it. At the time it was not documented. Knowing what that is will be the key I think. It has been several years since I worked on that one.
NX10.03
Windows 7 Pro

Re: 4th axis output of A90 and A270 vs A90 and A-90

This makes sense.  the post with code i want uses a main, and local from main.  the new post uses main, and local sysy rotaion.

 

i will try to find the diference

Damian Forsythe
Impact Manufacturing Group
NX 10.0.3.5

Learn online





Solution Information