#define SPINDLEAXIS 3			// Axis Channel to Jog to rotate Spindle
#define FACTOR (2574.62857/60.0)  	// to convert RPM to counts/sec (counts/rev / 60.0sec)
#define SPINDLEENA_BIT 144   	// bit to activate rotation
#define SPINDLEHALT_BIT 145     // bit to to break SPINDLE before bit 144 goes off
#define SPINDLEnn_BIT 1034 		// bit to notify SPINDLE reached the set speed
#define SPINDLEn0_BIT 1033		// bit to notify SPINDLE stopped = 0rpm
#define SPEEDVAR 99				// global persistant variable to store latest speed
#define STATEVAR 98				// global persistant variable to store latest state (-1=CCW,0=off,1=CW)
#define KMVAR PC_COMM_CSS_S 	// variable KMotionCNC will pass speed parameter (113)
#define USE_POS_NEG_VOLTAGE 1 	// 0 = output Magnitude, 1 = output positive and negative speed 
