--got scaling figured out and working (code located in the PLC script)
yes... one for each axis , I love these registers.
local chkVar3 = ReadReg("iRegs0/xscale");
if (chk3 ~= chkVar3) then
chk3 = chkVar3
if (chkVar3 ~= 1) then
code = string.format("G51 X%0.4f",tostring(chkVar3));
scr.SetProperty('droX1', 'Fg Color', 'Red');
else
code = string.format("G50");
scr.SetProperty('droX1', 'Fg Color', 'Green');
end
mc.mcCntlGcodeExecute(inst, code);
end