Tom,
When the ESTOP is pressed in, a Gamepad jog (user error) disables the drives (yellow DROs). Is there any way to temporarily disable the Gamepad (while ESTOP is in)? I tried setting m_EnableGamePad=0 in GCodeConfigCNC.txt while the ESTOP is in, but the checkbox remains checked.
On this machine, the ESTOP is hard wired to the PMDX/Geckos. If the ESTOP is released prior to making a Gamepad jog (no user error), everything works fine.
Thanks.
Disable Gamepad while ESTOP
Moderators: TomKerekes, dynomotion
-
- Posts: 21
- Joined: Tue Nov 20, 2018 5:39 pm
- Location: Sharonville, Ohio
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: Disable Gamepad while ESTOP
You might try setting the Jog Speed Overrides to zero, and then back to 1 when EStop is released.
Code: Select all
#include "KMotionDef.h"
#define TMP 10 // which spare persist to use to transfer data
#include "KflopToKMotionCNCFunctions.c"
main()
{
DoPCFloat(PC_COMM_SET_JOG_OVERRIDE_X, 0.0);
DoPCFloat(PC_COMM_SET_JOG_OVERRIDE_Y, 0.0);
DoPCFloat(PC_COMM_SET_JOG_OVERRIDE_Z, 0.0);
}
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
-
- Posts: 21
- Joined: Tue Nov 20, 2018 5:39 pm
- Location: Sharonville, Ohio
Re: Disable Gamepad while ESTOP
Thanks again!
Besides those six Jog Speeds fields (X,Y,Z,A,B,C), can any of the other fields on the Tool Setup Screen | Trajectory Planner page be overridden (just curious)? I looked in the <>\DSP_KFLOP\PC-DSP.h file, but didn't see any Constants for the other fields.
Besides those six Jog Speeds fields (X,Y,Z,A,B,C), can any of the other fields on the Tool Setup Screen | Trajectory Planner page be overridden (just curious)? I looked in the <>\DSP_KFLOP\PC-DSP.h file, but didn't see any Constants for the other fields.
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: Disable Gamepad while ESTOP
No, just the commands listed in PC-DSP.h are available.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.