External feed hold


Results 1 to 2 of 2

Thread: External feed hold

  1. #1
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    62
    Downloads
    0
    Uploads
    0

    Default 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:


  2. #2
    Registered
    Join Date
    May 2006
    Location
    USA
    Posts
    62
    Downloads
    0
    Uploads
    0

    Default

    It is working now after I add this code:
    ResumeCoordinatedMotion(); Thanks



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

External feed hold

External feed hold