Clearing Variables

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

Clearing Variables

Postby n3plastix@gmail.com » Wed May 05, 2021 3:14 pm

I am making a lot of similar parts with slightly different dimensions. So i made a template program where sizes and dimensions for the code are stored in variables.

So I have a few different programs based on this template - works great.....but

sometimes after moving from one program to the next. The old variable value is still stored and used.

We end the program each time with M30 -

do I need something to clear out the variables ?

using basic like
#10=5.00 (part width)
#15=6.00 (part ht)

and then these are called up in the program for moves very straight forward.
n3plastix@gmail.com
 
Posts: 1
Joined: Wed May 05, 2021 3:08 pm

Re: Clearing Variables

Postby ger21 » Wed May 05, 2021 3:36 pm

Set them all to 0 at either the end or beginning?
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: Google [Bot] and 22 guests