forked from gnea/grbl-Mega
-
Notifications
You must be signed in to change notification settings - Fork 7
Features
LETARTARE edited this page May 21, 2017
·
6 revisions
To select the desired axis, you must use the file 'grbl/default.h'.
Assume that you want a rotary axis named A (rotates around the axis 'X')
At line 40 you will find :
/// ====> You must choose only one type, but not both <====
//#define AXIS_Q_TYPE LINEAR // false -> linear
#define AXIS_Q_TYPE ROTARY // true -> rotary
then at line 57 you find:
// rotary axis
#define AXIS_Q AXIS_A /// ==> You must choose your rotary fourth axis <==
From the line 76 you set define the common characteristics of
- stepper motors
- power interface
- pitch screw for linear axis
- ratio_table for rotary axis
Attention : pinout is different from the official version of Grbl-1.1
In 'cpu_map.h' line 38 you find the pinout for steps :
- #define X_STEP_BIT 0 // MEGA2560 Digital Pin 22
- #define Y_STEP_BIT 2 // MEGA2560 Digital Pin 24
- #define Z_STEP_BIT 4 // MEGA2560 Digital Pin 26
- #define Q_STEP_BIT 6 // MEGA2560 Digital Pin 28
line 49 pinout for directions :
- #define X_DIRECTION_BIT 1 // MEGA2560 Digital Pin 23
- #define Y_DIRECTION_BIT 3 // MEGA2560 Digital Pin 25
- #define Z_DIRECTION_BIT 5 // MEGA2560 Digital Pin 27
- #define Q_DIRECTION_BIT 7 // MEGA2560 Digital Pin 29
line 60 pinout for disable out :
- #define STEPPERS_DISABLE_BIT 7 // MEGA2560 Digital Pin 30
line 68 pinout for limits :
- #define X_LIMIT_BIT 4 // MEGA2560 Digital Pin 10
- #define Y_LIMIT_BIT 5 // MEGA2560 Digital Pin 11
- #define Z_LIMIT_BIT 6 // MEGA2560 Digital Pin 12
- #define Q_LIMIT_BIT 7 // MEGA2560 Digital Pin 13