Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spindle Enable Pin Not Functioning #510

Open
mertzk opened this issue Apr 19, 2022 · 1 comment
Open

Spindle Enable Pin Not Functioning #510

mertzk opened this issue Apr 19, 2022 · 1 comment

Comments

@mertzk
Copy link

mertzk commented Apr 19, 2022

Hello All,
I am compiling with edge-preview 28e7286 using the make PLATFORM=DUE BOARD=gShield make command. The coolant and spindle control lines appear to be input with internal pull-ups and will not toggle with the M4, M5, M8, or M9 commands. My hope is to have the spindle enable on pin 12 and pwm on pin 11 control a laser. When using the pre-built version 103 .bin file, the pins function properly. The spindle pinout and settings have been tried with default values and with some modifications to no avail. Is this a bug or am I missing the proper line to enable these pins' functions?

#define SPINDLE_ENABLE_OUTPUT_NUMBER 12

pin_number kSpindle_EnablePinNumber = 12;

`#ifndef SAFETY_INTERLOCK_ENABLE
#define SAFETY_INTERLOCK_ENABLE 1 // {saf: 0=off, 1=on
#endif

#ifndef SPINDLE_MODE
#define SPINDLE_MODE 1 // {spmo; 0=diabled, 1=plan to stop, 2=continuous
#endif

#ifndef SPINDLE_ENABLE_POLARITY
#define SPINDLE_ENABLE_POLARITY 1 // 0=active low, 1=active high
#endif

#ifndef SPINDLE_DIR_POLARITY
#define SPINDLE_DIR_POLARITY 0 // {spdp: 0=clockwise is low, 1=clockwise is high
#endif

#ifndef SPINDLE_PAUSE_ON_HOLD
#define SPINDLE_PAUSE_ON_HOLD false // {spph:
#endif

#ifndef SPINDLE_SPINUP_DELAY
#ifdef SPINDLE_DWELL_TIME
#define SPINDLE_SPINUP_DELAY SPINDLE_DWELL_TIME
#warning Please update your settings! SPINDLE_DWELL_TIME is now SPINDLE_SPINUP_DELAY
#else
#define SPINDLE_SPINUP_DELAY 0 // {spde:
#endif
#endif

#ifndef SPINDLE_OVERRIDE_ENABLE
#define SPINDLE_OVERRIDE_ENABLE 1
#endif

#ifndef SPINDLE_OVERRIDE_FACTOR
#define SPINDLE_OVERRIDE_FACTOR 1.0
#endif

#ifndef SPINDLE_OVERRIDE_MIN
#define SPINDLE_OVERRIDE_MIN FEED_OVERRIDE_MIN
#endif

#ifndef SPINDLE_OVERRIDE_MAX
#define SPINDLE_OVERRIDE_MAX FEED_OVERRIDE_MAX
#endif

#ifndef SPINDLE_DWELL_MAX
#define SPINDLE_DWELL_MAX 10000000.0 // maximum allowable dwell time. May be overridden in settings files
#endif

#ifndef SPINDLE_SPEED_MIN
#define SPINDLE_SPEED_MIN 0.0 // {spsn:
#endif

#ifndef SPINDLE_SPEED_MAX
#define SPINDLE_SPEED_MAX 1000000.0 // {spsm:
#endif
`

@ril3y
Copy link
Member

ril3y commented Feb 17, 2023

Did you ever get this working? Post the settings you used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants