Hi,
Just installed the latest release and I like some of the new features. It is grate that the user fields and checkboxes ID>= 20000 are saved in the profile, but is there a good example of how to use the saved value? I mean, do I have to open the file, find the right label, read the value and write it back into the field every time after start, or is there an automatic way?
This is what I am trying to do: I want to use the B and C axis fields for something else and also as global values to be passed on to a lot of other macros. I change the label to 20002 and 20003 from 230 and 231. This works fine, I can use the fields, enter values and the "Zero All" button does not change them back to zero. When I close UCCNC, I can see that the values are saved in the profile, but when I start UCCNC the fields display zero, not the values which are saved in the profile file.
If I don't change the label numbers and just keep 230 and 231 then this is not an issue, the values are saved and when UCCNC is started the next time the saved values are placed in the fields. This is fine for me, I can use any labels, but the problem is that the "Zero All" button would clear the values.
I could rewrite the macro for the "Zero all", but the question is, does that button do anything more than:
exec.Setvar(0, Xvar);
AS3.Setfield(0, Xdro);
AS3.Validatefield(Xdro);
...repeated for each axis, or is that button doing something else also? Rewriting the Zero All is the easiest approach, much easier than having to open the file and look for the right user field label, reading the value and so on... just to get the field updated every time UCCNC is started.
Or, is there an automatic/better way to do this?
Thanks for the help.