81
Mach4 General Discussion / Re: M Codes in MDI
« on: May 27, 2016, 09:49:06 PM »
Evidently you can't use a screen element in a M code...
This works...
inst = mc.mcGetInstance()
val = '0.50000'
gCode1 = 'G00 Z' .. val
mc.mcCntlGcodeExecute(inst, gCode1)
This does not...
inst = mc.mcGetInstance()
val = scr.GetProperty('droTest1', 'Value')
gCode1 = 'G00 Z' .. val
mc.mcCntlGcodeExecute(inst, gCode1)
This works...
inst = mc.mcGetInstance()
val = '0.50000'
gCode1 = 'G00 Z' .. val
mc.mcCntlGcodeExecute(inst, gCode1)
This does not...
inst = mc.mcGetInstance()
val = scr.GetProperty('droTest1', 'Value')
gCode1 = 'G00 Z' .. val
mc.mcCntlGcodeExecute(inst, gCode1)