Terry,
Place a "dro" on your screen, the User Dro you want, for this example Name it: UDRO20 in its properties window.
then in a button, put this code:
local inst = mc.mcGetInstance();
local rc = 0;
local MyVarVal = 0;
local MyStgVal = "";
MyVarVal, rc = mc.mcCntlGetPoundVar(inst, 590);
if rc ~= 0 then
mc.mcSetMachError(inst, "get # err");
else
MyStgVal = tostring(MyVarVal);
rc = scr.SetProperty('UDRO20', 'Value', MyStgVal );--sets your UDRO to your Param value on the push
end
--the opposite procedure would go the other way, load your User Dro to your param...
--further, if you want these two things to happen as mach runs automatically, drop them in the PLC scripter, but PLEASE make --sure they run without error before you do
--Scott
Simpson36,
I did publish some down and dirty "User Manual" for McLua stuff............ while true I am not the "OEM" picked to do an official manual, it should serve to get ya started.
Scott