MPGSmooth.c
I have used the MPGSmooth.c example to get my pendant up and running and have a couple questions. To disable the pendant I have the code set to change the movement factor to 0, this seems to work ok but was wondering if there is a better way to do this. Also I don't understand what the code below is doing for the pendant.
#define COUNTS_PER_MM 200.0
for (;
{
if (ch0->Position < 10.0 * COUNTS_PER_MM)
SetBit(150);
else
ClearBit(150);
if (ch0->Position > 300.0 * COUNTS_PER_MM)
SetBit(151);
else
ClearBit(151);
BTW the movement from the pendant is fantastic now, I have used both USB and hardwired pendants in Mach3 and this is by far the smoothest motion of any of them.
Everything in moderation, including moderation.