Disable Gamepad while ESTOP

Moderators: TomKerekes, dynomotion

Post Reply
HowHardCanItBe
Posts: 21
Joined: Tue Nov 20, 2018 5:39 pm
Location: Sharonville, Ohio

Disable Gamepad while ESTOP

Post by HowHardCanItBe » Thu Oct 08, 2020 8:20 pm

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.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: Disable Gamepad while ESTOP

Post by TomKerekes » Thu Oct 08, 2020 9:40 pm

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.

HowHardCanItBe
Posts: 21
Joined: Tue Nov 20, 2018 5:39 pm
Location: Sharonville, Ohio

Re: Disable Gamepad while ESTOP

Post by HowHardCanItBe » Fri Oct 09, 2020 3:09 am

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.

User avatar
TomKerekes
Posts: 2540
Joined: Mon Dec 04, 2017 1:49 am

Re: Disable Gamepad while ESTOP

Post by TomKerekes » Fri Oct 09, 2020 4:30 pm

No, just the commands listed in PC-DSP.h are available.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply