Tom,
So, i can use the same type of code to block my axis limit pop up message during referencing? Here is a snippet of the X axis limit switch from main init code.
Code:
// Handle axis X minus limit switch
result = Debounce(ReadBit(XMINUSLIMITBIT), &xmcount, &xmlast, &xmlastsolid);
if (result == 1)
{
ClearBit(152);
MsgBox("X - Limit. Jog opposite direction.", MB_OK | MB_ICONEXCLAMATION);
}
How would i change the 'if' statement to also look at the state of VirtualBit that i will set at beginning of my referencing Ccode program?
Thanks,
Troy