Looks like the problem was with my machine and not with Kmotion. My high range tensioner wasnt retracting all the way after going into low range. And my M3 program was just sitting there waiting for the conformation signal.
I should probably add some time limits and error messages to these while loops. Anybody know if theres an example program already done on displaying an error if in a while loop for a certain period of time? Something that could be easily added to this code that caused the problem on my machine:
Code:if (!ReadBit(154) && ReadBit(156) && (spd <= 2300)) // stopped, in high range and s less than or equal to 2300 { ClearBit(156); // disengage high SetBit(157); // engage low while (!ReadBit(1041)) // wait for high idler home signal { WaitNextTimeSlice(); } SetBit(154); // spindle on cw SetBit(159); // Turn on air seal }