Use of variables

Post anything you want to discuss with others about the software.

Use of variables

Postby valhallaCNC » Fri May 20, 2022 3:19 am

I have been trying to use variables in G-Code. I get an error when I use this G0 Z [-0.026+#100] , it appears it cannot evaluate this expression. However if I define #101 = [-0.026+#100] , G0#101 it works without errors. Is there a way to evaluate expression directly as in the first example ? Thanks Joe
valhallaCNC
 
Posts: 81
Joined: Wed Jun 30, 2021 8:04 pm

Re: Use of variables

Postby ger21 » Fri May 20, 2022 10:42 am

The manual says no.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Use of variables

Postby valhallaCNC » Fri May 20, 2022 3:56 pm

Must have missed that ...Thanks
valhallaCNC
 
Posts: 81
Joined: Wed Jun 30, 2021 8:04 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 28 guests