Cancel
Showing results for 
Search instead for 
Did you mean: 

C Axis return

Pioneer
Pioneer

Dear Sir

I have two operations, if the post is output together, then the C axis of operation 2 is 340 degrees, how to set it to return the angle to 0 degrees.

post.jpgoperation1.jpgoperation2.jpg

4 REPLIES

Re: C Axis return

Gears Phenom Gears Phenom
Gears Phenom

h,

 

use "reset all motion variable..."  CMD in the end of operation

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: C Axis return

Pioneer
Pioneer

Hi,Juraj

I tried to add "reset_all_motion_variables_to_zero", but did not make any changes, whether to make other settings.

1.jpg

Highlighted

Re: C Axis return

Gears Phenom Gears Phenom
Gears Phenom

In case  of second operation, actually SPC+340 is correct of status of the axes. It can make good result.

But I understand the SPC+0 is what we want to see Smiley Happy

 

I use this command I described you above and it is working for me. Now I have any idea what is wrong.

 

Here is the content CMD:

 

 # 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

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: C Axis return

Pioneer
Pioneer

Hi,Juraj

 

Thank you so much.Smiley Happy

Learn online





Solution Information