minus sign in a variable

Discussions and examples of Parametric programming in UCCNC

minus sign in a variable

Postby claudio » 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!
claudio
 
Posts: 10
Joined: Mon Sep 24, 2018 2:34 pm

Re: minus sign in a variable

Postby ger21 » Mon Sep 24, 2018 10:26 pm

Delete, I read the question wrong.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am

Re: minus sign in a variable

Postby claudio » Tue Sep 25, 2018 3:21 pm

thank you so much! :)
claudio
 
Posts: 10
Joined: Mon Sep 24, 2018 2:34 pm


Return to Parametric Programming

Who is online

Users browsing this forum: No registered users and 1 guest