Hi Troy,
Sorry about the Yahoo Group being down (we have no control over this). It still seems posting messages fail. Thanks for your patience with this.
Found another classic C bug (testing if equal instead of setting equal)
*pFeedhold == -2; // simulate a tapping feedhold
should be
*pFeedhold = -2; // simulate a tapping feedhold
Here is a ling to the updated file:
http://dynomotion.com/Software/Patch...ld%20Rev%206.c
Regarding Reference C issue: I couldn't find your Reference C program in your Yahoo Files. But one solution might be to set a virtual bit while Homing is happening and clear it when Homing finishes. Your Init program monitor loop can then check that virtual bit to inhibit displaying limit messages.
So for example define Virtual bit 1052 for homing Status:
#define HOMING_BIT 1052
Then add:
SetBit(HOMING_BIT);
.
.homing stuff
.
ClearBit(HOMING_BIT);
Then in your monitor loop add a condition for some Limit Test you might change
if (result==1)
to
if (result==1 && !ReadBit(HOMING_BIT)) // check for result and not currently homing
Regards