Right Pedio, Ive setup my shuttle as follows
In the mach configuration/MPGs - Ive got the innerwheel set to mpg1
In the shuttle plugin config I have assigned the axis keys to MPG1 Select X - MPG1 Select Y - MPG1 Select Z
In the PLC script is
Just change to what you need..
if mc.mcMpgGetAxis(inst,1) == 0 then
scr.SetProperty('droCurrentX', 'Bg Color', 'Red')
else
scr.SetProperty('droCurrentX', 'Bg Color', 'Black')
end
if mc.mcMpgGetAxis(inst,1) == 1 then
scr.SetProperty('droCurrentY', 'Bg Color', 'Red')
else
scr.SetProperty('droCurrentY', 'Bg Color', 'Black')
end
if mc.mcMpgGetAxis(inst,1) == 2 then
scr.SetProperty('droCurrentZ', 'Bg Color', 'Red')
else
scr.SetProperty('droCurrentZ', 'Bg Color', 'Black')
end
Got to admit, I do like this shuttle :-)
Daz