minus sign in a variable
Posted: Mon Sep 24, 2018 8:50 pm
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!
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!