-
Notifications
You must be signed in to change notification settings - Fork 303
Description
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
`