Hi eman5oh,
Setting the Factor to 0 is a good way to disable pendant movement. You might also make use of the new JOB_ACTIVE flag available in KFLOP to disable the pendant movement when a Job is running.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.
That is some example code to set Output Bits based on Axis position to simulate something like negative and positive limit switches. Not sure how that got in there. You can remove it. Of course you still need the "for" statement to form the loop.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);
Great to hear. You might also try the MPGSmoothAccelerate.c example. It changes the MPG Response rate based on how fast the MPG is turning. I was told it works very well.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.
Regards