Cancel
Showing results for 
Search instead for 
Did you mean: 

[NX POST BUILDER] The expression of Incremental coordinate system

Pioneer
Pioneer

Hi,everyone,

 

I think that this is a easy question,

 

I want to output the incremental coordinate system,

 

I just know the expression $mom_pos(0) can output the coordinate X ,

 

but if i need to output the incremental coordinate system which is subtract the current coordinate,

 

what expression i need to type?

 

 

thanks any help!

 

 

wkl

5 REPLIES

Re: [NX POST BUILDER] The expression of Incremental coordinate system

Gears Phenom Gears Phenom
Gears Phenom

hi

- you can use user defined expresion in X,Y,Z adresses  "mom pos - prev pos "  / dont forget output G91, forced

- or use in start of operation/program

    global mom_output_mode
    set mom_output_mode INCREMENTAL
     MOM_set_modes

- or do not edit PP and set UDE to operation "set modes"  - incremental output

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

Re: [NX POST BUILDER] The expression of Incremental coordinate system

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Is your system a Fanuc lathe/mill-turn that uses UVW for incremental & XYZ for absolute?

If so, you'll need to redefine "mom_sys_leader(X)" (and Y and Z) appropriately...

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


Re: [NX POST BUILDER] The expression of Incremental coordinate system

Pioneer
Pioneer

Hi,

I don't want to change the mom_output_mode,

so i try first solution you said, but the expression:" $mom_pos(0)-$prev_pos(0)" ,can't work
i think that it have no expression of $prev_pos(),

 

Actually, i want to output incremental position of probing for HEIDENHAIN controller,

 

thanks any help !

Re: [NX POST BUILDER] The expression of Incremental coordinate system

Gears Phenom Gears Phenom
Gears Phenom

there is mom_prev_pos: The previous values of mom_pos, Numeric Array(5)

so then mom_pos()-mom_prev_pos() should works.

In first motion there is no previous position ofcourse - So this you have to handle it somehow.

 

/ Other case:

/ If in some moment doesnt exist just save a last positions to some custom variable and use it.

/you have to mimic last/previous position.

/ mom_pos()- "your custom variable()"

 

*

heidenhain - dont forget add "I" text just before X/Y/Z address.

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

Re: [NX POST BUILDER] The expression of Incremental coordinate system

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Typically in the very first move, mom_prev_pos is not defined, so _usually_ I see it defined to either

- 0

- machine home position (possible relative to current MCS object)

 

e.g.

if {![info exists mom_prev_pos(0)]} {
    set mom_prev_pos(0) 0.0
}

Note there may be other variable arrays you need to check:

 

- mom_prev_out_angle_pos(0..1) (which MAY NOT match mom_prev_pos(3..4) !!)

- mom_last_pos(0..2) (particularly if dealing with a drilll cycle)

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