Ok, I did mess with it, and got it working from within a plugin.. (see screen shot),
but, it was a long slide for a short gain. In this case, I just wrote the values out
to the XML so I could prove it out.
But, Steve said, that would be to slow, so, it is better to write out to a register as another place to put data where it would be global in nature to get to it from your screen set, or Macro, or Wizard.. etc.
Steve also said, (as usual), there is an easier way.
you will need to look at the Mach4.api to get the defines for all the things you can get to.
the "mcLua" commands of:
local val = mcCntlGetValue(inst, COMMAND, PARAM) will get a TON of all kinds of stuff.
local xAxis = 0;
i.e.: local xPos = mcCntlGetValue(0, VAL_MACHINE_POS, xAxis);
and the
mcCntlGetPoundVar(inst, #VarValue) will get just about everything else.
i.e.: mcCntlGetPoundVar(inst, mc.CUR_TOOL_NUMBER) will get just about everything else.
so, all the various structures, can be gotten to via mcLua in a round about way.
Thanks Steve for the Heads Up!!
Scott