585,668 active members*
4,159 visitors online*
Register for free
Login
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    216

    External Single Step Button Function?

    Hi Tom,

    Is there a way to add the function of single step command (found on the G code screen) to an external button.c file? It's useful to be able to step through the first bit of a new program one line at a time and if i could do while working closer to the machine with out having to always make sure my mouse is clicking the right button on the screen that would be a nice feature to have as an external button on the desk or pendant.

    Thanks,
    Dan

  2. #2
    Join Date
    Feb 2006
    Posts
    7063

    Re: External Single Step Button Function?

    I do exactly that using my pendant through a custom PCComm function. But, that has to be done within the application - Unless there's some trick I don't know, it can't be done entirely by the KFlop, since it requires calling the interpreter to run a single line of the G-code file, and the G-code file and the interpreter exist only on the PC, not the KFlop.

    Regards,
    Ray L.

  3. #3
    Join Date
    Feb 2008
    Posts
    216

    Re: External Single Step Button Function?

    Hi Ray,

    Which application are you referring to? We are using KmotionCNC.

  4. #4
    Join Date
    Feb 2006
    Posts
    7063

    Re: External Single Step Button Function?

    Quote Originally Posted by slimneill View Post
    Hi Ray,

    Which application are you referring to? We are using KmotionCNC.
    It would have to be integrated into KMotionCNC by modifying the course code.

    Regards,
    Ray L.

  5. #5
    Join Date
    May 2006
    Posts
    4045

    Re: External Single Step Button Function?

    Hi Dan,

    KMotionCNC contains a mechanism for KFLOP to communicate special codes to request it to do certain things including Single Step. The supported codes and operations are listed in the PC-DSP.h header file. See:

    KFLOPtoPCCmdExamples.c

    Specifically the call to:

    DoPC(PC_COMM_SINGLE_STEP);

    HTH
    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. Add external button
    By ltran2000 in forum Dynomotion/Kflop/Kanalog
    Replies: 9
    Last Post: 12-09-2013, 12:41 AM
  2. External Cycle Start button
    By Jerry Shorter in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 06-07-2010, 07:59 PM
  3. Interfacing 3 Position Rotary Switch with Cycle Jog Step Function
    By MRM RCModels in forum Mach Software (ArtSoft software)
    Replies: 1
    Last Post: 01-24-2010, 01:34 PM
  4. Button function
    By ChattaMan in forum Okuma
    Replies: 2
    Last Post: 11-14-2009, 12:55 PM
  5. Single Step/Half Step Question
    By Hawkeye in forum DIY CNC Router Table Machines
    Replies: 4
    Last Post: 11-20-2003, 05:28 PM

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
  •