OK NOW I got it. Here is a Mcode with Param actually doing something. I can see where this will be VERY handy to use instead of using the G65 which is a licensed function not available to the average Joe (;-)
(;-) TP
---------------------------------------------------
--Brought to you by the: "Grey Headed ChipSlinger"!!
----------------------------------------------------
function M900(hVars)
local Va
local Vb
local Vc
local inst = mc.mcGetInstance() -- Get the current instance
mc.mcCntlSetLastError(inst, "Test Mcode Parameter");
Va = mc.mcCntlGetLocalVar(inst, hVars, mc.VAR_A)
Vb = mc.mcCntlGetLocalVar(inst, hVars, mc.VAR_B)
Vc = mc.mcCntlGetLocalVar(inst, hVars, mc.VAR_C)
mc.mcCntlGcodeExecute(inst, "G0 X"..Va);
mc.mcCntlSetLastError(inst, "Test Mcode Complete");
end
if (mc.mcInEditor() == 1) then
M900(0)
end