For example declare
- Code: Select all
REG n_SystemIsBusy; //declare register
RegRegister("Neuron", "n_SystemIsBusy", REG_TYPE_GENERAL, &n_SystemIsBusy); //Add register for the Neuron device in the UCCNC
Then get the value in the macros
- Code: Select all
bool res = GetRegValue("Neuron","n_SystemIsBusy")
Balazs, what you think? It's will be useful in the future?
Also I see Getvar(int varnum)/Setvar(double value, int varnum) functions. May be this is what I say? In this case how to declare Variable in the Plugin (which will be available in the macros, for example variable #1)
Thank you!