585,760 active members*
3,717 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2014
    Posts
    2

    How to disable jog keys in KMotionCNC?

    Hello everyone!

    I am new to programming and I have problem disabling jog keys.

    I have two motors on X axis. One is slaved to another master axis. The problem is, whenever the home operation is active and I accidentally press any jog key or joystick analog, all motors stop except slaved X motor. Because it has been de-slaved from master axis during a homing operation, its channel doesn't react to jog keys. Quite dangerous situation.

    My idea was to make jog keys greyed out in KMotionCNC during squaring, same as it is when you launch g code.

    I am aware there is code line "#define PC_COMM_DISABLE_JOG_KEYS 38". The header to include would be #include "PC-DSP.h"

    I included "#define PC_COMM_DISABLE_JOG_KEYS 38" at the beginning of my homing code
    and "#define PC_COMM_ENABLE_JOG_KEYS 37" at the end. I guess it doesn't work like that.

    Wouldn't there be some function that uses constant "PC_COMM_DISABLE_JOG_KEYS"?

    Thank You!

    Janis.

  2. #2
    Join Date
    May 2006
    Posts
    4045

    Re: How to disable jog keys in KMotionCNC?

    Hi Janis,

    See the example \KFLOPtoPCCmdExamples.c on how to use DoPC() to send those type of commands from KFLOP to KMotionCNC.

    You might also add some protection in a forever monitor loop that would always disable both the Master and Slave axes if one or the other is disabled regardless of whether they were slaved.

    HTH
    Regards
    TK
    http://dynomotion.com

  3. #3
    Join Date
    Oct 2014
    Posts
    2

    Re: How to disable jog keys in KMotionCNC?

    Hi Tom,

    Thank you for replay. I will check it out.

    Great suggestion on forever loop.

Similar Threads

  1. xhc for KMotionCNC
    By frate in forum Dynomotion/Kflop/Kanalog
    Replies: 12
    Last Post: 10-13-2017, 12:09 AM
  2. Issues with KmotionCNC
    By Thomas Zamirski in forum Dynomotion/Kflop/Kanalog
    Replies: 9
    Last Post: 07-21-2015, 02:05 PM
  3. KMotionCNC Profiles
    By embraced in forum Dynomotion/Kflop/Kanalog
    Replies: 1
    Last Post: 05-12-2015, 05:33 PM
  4. Error from Kmotioncnc
    By LarsSweden in forum Dynomotion/Kflop/Kanalog
    Replies: 16
    Last Post: 04-01-2015, 06:45 PM
  5. KMotionCNC
    By alexandr_st in forum Dynomotion/Kflop/Kanalog
    Replies: 8
    Last Post: 01-17-2013, 07:11 AM

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
  •