I'm in progress of porting my self made MPG from Mach3 to UCCNC.
I started writing some macroloops and they are working fine. I realized for certain
functions I need a plugin.
Now i have the problem that i cannot access button states form the Jog Window:
Here a example:
In the macro i coded
- Code: Select all
// x achse selected
if (AS3jog.Getbuttonstate(220)){
LEDS |= MASK_X;
}else{
LEDS &= ~MASK_X;
}
and it works fine
in the plugin loop i coded
- Code: Select all
// x achse selected
if (UC.Getbuttonstate(220))
{
LEDS |= MASK_X;
}
else
{
LEDS &= ~MASK_X;
}
UC.Getbuttonstate(220) always returns false if the button is pressed or not
My questions:
how can I access this button state from the jog window in a plugin?
Is there a document of the differences between macro interface and plugin interface.
Helmut