- External feed hold
-
Registered
External feed hold
Hi Tom
I added these codes to Init.c just before Return 0;
{
int fault=0;
for (; // repeat forever
{
WaitNextTimeSlice(); // execute one loop per time slice
// check external fault signal
if (!fault && ReadBit(175))
{
fault=1; // remember we are in a fault state
StopCoordinatedMotion(); // do a feed hold
}
if (fault && !ReadBit(175))
{
fault=0; // remember we are no longer in a fault state
}
}
}
It does a feed hold when I press a button, it should get out of feed hold
when I release the button or press a button again, how can I do that ? the button is hook-up to kstep,do I need pull-up resistor. Thanks Tom
Ltran
Similar Threads:
-
-
Registered
It is working now after I add this code:
ResumeCoordinatedMotion(); Thanks
- External feed hold
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules