How to reset a User-String-Variable #300 - #399?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

cnckeith
Site Admin
Posts: 8941
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: How to reset a User-String-Variable #300 - #399?

Post by cnckeith »

tblough wrote: Tue May 14, 2019 11:23 am Keith,

It looks like swissi is just trying to apply good programming practice to his macro files. Since string variables are global and only cleared on restart of the machine, he wants to clear them after he is done using them so that the next macro to use the variable (if it happens before the machine is restarted) does not potentially get bad data. Unlike the numerical variables, there currently is not a way to set a string variable to it's initial "empty" state.
thanks..swissi hinted at he is using these features in a custom Fusion 360 post.. i hope he shares with everyone as it sounds interesting..

today we added this to CNC12 "You can now initialize User String Variables (#300-#399) to an empty string. (i.e. #300 = "")"
and will be included with v4.16
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


Post Reply