Page 1 of 1

minus sign in a variable

PostPosted: Mon Sep 24, 2018 8:50 pm
by claudio
the software give me error when I use a variable with minus sign before
see the attached file

#3=2
#1=#3*10
#2=#3*30
T1S2000F500
M3
G0Z10
G0X-10Y-10
G0Z-5
G1X0Y0
G91
Y#1
X#2
Y-#1
X-#2
G90
X-10Y-10
G0Z10
M30

I solved creating other 2 variables
#3=-#1
#4=-#2
y#3
x#4

it's impossible the first metod?
Thanks!

Re: minus sign in a variable

PostPosted: Mon Sep 24, 2018 10:26 pm
by ger21
Delete, I read the question wrong.

Re: minus sign in a variable

PostPosted: Tue Sep 25, 2018 3:21 pm
by claudio
thank you so much! :)