Cancel
Showing results for 
Search instead for 
Did you mean: 

[Post Builder] rotation position in initial move

Solution Partner Innovator Solution Partner Innovator
Solution Partner Innovator

Hi

 

I have a question. Machine type is as follows.

 

MACHINE.jpg

 

The question is the rotation of the X and C axes.

 

initial_move.jpg

The X axis has a limit value.

Therefore, it can not move to X560 C90.
It should be output to X-560 C270.

 

How can I setup?
Please advise.

 

 

 

3 REPLIES 3

Re: [Post Builder] rotation position in initial move

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Try using the "Rotate" UDE

I would first try:

- C Axis

- Absolute

- direction = none

- angle = 270

- "Reference Only - No Output" = checked

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


Highlighted

Re: [Post Builder] rotation position in initial move

Solution Partner Innovator Solution Partner Innovator
Solution Partner Innovator

Thank you Ken.

 

I confirmed using UDE that the output is normal.

 

I want to set it to auto output without UDE.

I set it as follows in initial move.

 

if {$mom_pos(0) > 0 } {

    set mom_rotate_axis_type "CAXIS"
    set mom_rotation_mode "ABSOLUTE"
    set mom_rotation_direction "NONE"
    set mom_rotation_angle [expr 360-$mom_out_angle_pos(0)]
    set mom_rotation_reference_mode "ON"

}

 

But it does not output normally.

What is not set up?

 

Re: [Post Builder] rotation position in initial move

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Try something more like this:

 

global mom_pos
global mom_rotate_axis_type
global mom_rotation_mode 
global mom_rotation_direction
global mom_rotation_angle
global mom_rotation_reference_mode

# set values in code instead of via UDE
if {$mom_pos(0) > 0 } {
    set mom_rotate_axis_type "CAXIS"
    set mom_rotation_mode "ABSOLUTE"
    set mom_rotation_direction "NONE"
    set mom_rotation_angle [expr 360-$mom_out_angle_pos(0)]
    set mom_rotation_reference_mode "ON"
}

MOM_rotate  ;# You need to actually call the event handler yourself

 

NOTE: If you are calling this in the "Initial move" or "first move" events, recognize that all the "*_pos" variables are ALREADY SET.  So you have to re-calculate them YOURSELF (rotate by the angle) then "MOM_reload_variable -a" them 

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


Learn online





Solution Information