Cancel
Showing results for 
Search instead for 
Did you mean: 

variable Y axis

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

 I am wondering if you got any solution for this. This machine finish out for Y is offseted1.jpg2.jpg . Is there anyway of creating a MOM for if values of y is + the value is (+#102) while if the value if y is – it will be (-#102). Or do you have any work around apart from changing program.

 

Regards,

Edwin

4 REPLIES

Re: variable Y axis

Phenom
Phenom

make the sign +/- a variable

 

and put custom command before each motion with condition you just said.

 

 

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

Re: variable Y axis

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

HI Juraj,

 

Thanks for your reply.Do you have guideline on how to create the variable?

 

Best Regards,

Edwin

Re: variable Y axis

Phenom
Phenom

hi,

 

in Y address:

type into this box a variable (example "sign")

 

$sign

 

Snímka.JPG

 

put custom command in sections (before blocks) linear, circular, rapid move...etc..where your Y will be.

put into this custom command this:

 

global sign mom_pos

set sign "-#102]"

if {$mom_pos(1)>=0} {

set sign "+#102]"

}

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

Re: variable Y axis

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi Juraj,

Thanks ...It works.

 

Best Regards,

Edwin

Learn online





Solution Information