I have been digging to find out why the MPG is always on using the POKEYS plugin. Looking at the default Screen Load Script in MACH4 you will find the lines below near the top of the file. When you toggle the mode button on the screen it selects "Continuous" or "incremental" If you look at the code closely it also had a case for "MPG", which by default is just a blank between the quotes like them' ' instead of MPG, which I inserted as a test. However, after saving the screen the behavior does not change it never lists MPG as a mode. I must be missing something somewhere. Getting help on MACH4 has been extremely difficult, it is pretty clear the development team has totally focused on the commercial applications, the DIY guys are on their own. The few users that actually have things working are the only place you will get support, thank goodness for guys like DazTheGas, Blockhead, poppabear, and a few others. The code below is clearly operating I can change colors the text of continuous or other labels and they change.
Any clues guys.. I have been reading all the LUA documents provided with MACH4 as well as many others. I have coded in C for years and picked up on most of LUA pretty quickly, and understand a good deal now. I have looked through the entire script and can't see anywhere else this gets set??
Thanks
Russ
[mc.OSIG_JOG_CONT] = function (state)
if( state == 1) then
scr.SetProperty('labJogMode', 'Label', 'Continuous');
scr.SetProperty('txtJogInc', 'Bg Color', '#C0C0C0');--Light Grey
scr.SetProperty('txtJogInc', 'Fg Color', '#808080');--Dark Grey
end
end,
[mc.OSIG_JOG_INC] = function (state)
if( state == 1) then
scr.SetProperty('labJogMode', 'Label', 'Incremental');
scr.SetProperty('txtJogInc', 'Bg Color', '#FFFFFF');--White
scr.SetProperty('txtJogInc', 'Fg Color', '#000000');--Black
end
end,
[mc.OSIG_JOG_MPG] = function (state)
if( state == 1) then
scr.SetProperty('labJogMode', 'Label', 'MPG');
scr.SetProperty('txtJogInc', 'Bg Color', '#C0C0C0');--Light Grey
scr.SetProperty('txtJogInc', 'Fg Color', '#808080');--Dark Grey
--add the bits to grey jog buttons because buttons can't be MPGs
end
end,