586,103 active members*
3,369 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2010
    Posts
    79

    KmotionCNC startup

    Is it possible to have KmotionCNC run a start up script when you start the software?

    Want I am looking to do is have the amplifiers disabled unless KmotionCNC is running, so I would either need a signal that KmotionCNC is running that I could use in a C program.
    Or some kind of an auto launch on startup

    What would be the best way to accomplish this?


    Thanks
    Dave

  2. #2
    Join Date
    May 2006
    Posts
    4045
    Hi Dave,

    We don't have a start up script. When KMotionCNC starts running it will begin requesting status from KFLOP ~ 10 times per second. Inside KFLOP each time status is reported a counter is incremented. So would it work for you to monitor this counter and when you detect that it increments then you would know that KMotionCNC has started running? Actually any application that requests status (ie KMotion.exe) would also cause the counter to increment. I think that would work on startup. But it turns out that when a modal dialog box in KMotionCNC is open the status doesn't update so you can't really use it to determine that KMotionCNC exited.

    int StatusRequestCounter;

    HTH
    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. KMotionCNC Not Following Encoders In CL Stepper
    By Suumas in forum Dynomotion/Kflop/Kanalog
    Replies: 8
    Last Post: 12-29-2013, 05:56 AM
  2. KmotionCNC 430 Problem
    By Fish4Fun in forum Dynomotion/Kflop/Kanalog
    Replies: 5
    Last Post: 06-26-2013, 10:43 PM
  3. Is anyone using KmotionCNC instead of Mach3?
    By John Coloccia in forum Dynomotion/Kflop/Kanalog
    Replies: 5
    Last Post: 02-22-2013, 08:11 PM
  4. KMotionCNC
    By alexandr_st in forum Dynomotion/Kflop/Kanalog
    Replies: 8
    Last Post: 01-17-2013, 07:11 AM
  5. KMotionCNC hardware requirements
    By John Coloccia in forum Dynomotion/Kflop/Kanalog
    Replies: 5
    Last Post: 11-17-2012, 03:20 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
  •