System #vars value at startup

If you have a question about the software please ask it here.

System #vars value at startup

Postby beefy » Fri Dec 09, 2016 7:27 am

Hi Balazs,

would I be correct in assuming all system #vars would initialise to zero at system startup.

Also would it be bad programming practise to assume this, and should I have the Constructor Macro initialise any #vars I use to zero.

Keith
beefy
 
Posts: 449
Joined: Mon Sep 05, 2016 10:34 am

Re: System #vars value at startup

Postby cncdrive » Fri Dec 09, 2016 9:06 am

Hi Keith,

The UCCNC sets all #vars values to zero on startup.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: System #vars value at startup

Postby beefy » Fri Dec 09, 2016 1:08 pm

Perfect, thanks Balazs.

That's what I was hoping for.

Keith
beefy
 
Posts: 449
Joined: Mon Sep 05, 2016 10:34 am


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 43 guests