Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

variable Y axis

 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

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

HI Juraj,

 

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

 

Best Regards,

Edwin

Solution
Solution
Accepted by topic author Edwin_DTS
‎01-05-2017 12:18 AM

Re: variable Y axis

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

Hi Juraj,

Thanks ...It works.

 

Best Regards,

Edwin

Learn online





Solution Information