C-program questions- Dissallow into limits


Results 1 to 2 of 2

Thread: C-program questions- Dissallow into limits

  1. #1
    Registered
    Join Date
    Feb 2013
    Location
    USA
    Posts
    5
    Downloads
    0
    Uploads
    0

    Default C-program questions- Dissallow into limits

    First of all let me just say I have been really pleased with the kanalog/kflop boards that I purchased for my mill. I retrofitted an old motionmaster 5x5 3 axis mill that had analog drives and dc servos and it has been working wonderfully.

    The pc that i've been using just bit the dust this morning, which I didn't expect. Of course I didn't document anything about the C-programs that I have written so I have to start from square one.

    So here are my questions:

    What should a start-up c-program contain besides axis parameters?

    I have had difficulty getting the drives to re-enable an axis after limits have been pressed. The encoder position on kmotioncnc goes yellow. What would be the best way to write a c-program the board so I can reneable and drive out of the limit.

    So those are my questions for now. Thank You

    Similar Threads:


  2. #2
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4045
    Downloads
    0
    Uploads
    0

    Default

    Hi Scott,

    Ouch. Sorry to hear this.

    The Initialize C Program usually performs the following:

    #1 set axis parameters

    #2 enables all axes

    EnableAxisDest(0,0.0);
    EnableAxisDest(1,0.0);
    EnableAxisDest(2,0.0);

    #3 defines Coordinated Motion Systems ie.

    DefineCoordSystem(0,1,2,-1);

    #4 anything else your system might need initialized

    #5 loops to service any watchdog or MPG functions


    Regarding disallow into limits: If your Limit options are configured to Dissallow Drive into Limits You should be able to initialize while in the limits as long as you don't move at all in the direction further into the limit. A different input is required for each end of travel.

    Regards

    Last edited by TomKerekes; 05-01-2013 at 05:05 PM. Reason: double post
    Regards
    TK http://dynomotion.com


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

C-program questions- Dissallow into limits

C-program questions- Dissallow into limits