thomast777 / grbl32

GRBL 1.1f CNC Controller forked/ported to STM32 ARM : STM32F103 and STM32F407
GNU General Public License v3.0
190 stars 102 forks source link

XYYZA Configuration on F16 Board #18

Open AndyCXL opened 3 years ago

AndyCXL commented 3 years ago

Whilst I wait for my F16 PCB and programming dongle to arrive, I have been looking at the GRBL32 source code to be ready to setup and configure my CNC.

I have tried to sign in for an account on your shop website to get the user manuals, but no first sign-in email has arrived. In fact no email confirming the F16 purchase has arrived either.

Hope you can help as I am super keen to get started on my 4th axis journey with Vectric VCarve, UGS, F16 PCB (with 5x TMC2209 or DM542 drivers), and GRBL32.

AndyCXL commented 3 years ago

Can I presume that resolving the axis question is in g32core.h? Y axis has to be defined twice... the following excerpt from g32core.h seems to be in the right ball-park, but I can't see how Y_AXIS can be defined to be 1 and say 3 so the dual axis happens when Y is the command subject...?

define X_AXIS 0 // Axis indexing value.

define Y_AXIS 1

define Z_AXIS 2

ifdef STM32

if ( defined(STM32F1_4) || defined(STM32F4_4) )

#define A_AXIS 3

endif

if ( defined(STM32F1_5) || defined(STM32F4_5) )

#define A_AXIS 3
#define B_AXIS 4

endif

if ( defined(STM32F1_6) || defined(STM32F4_6) )

#define A_AXIS 3
#define B_AXIS 4
#define C_AXIS 5

endif

endif

AndyCXL commented 3 years ago

I can see quite a lot of references to #ifdef STM32 but nowhere can I see any #define for this - am I missing something?

I have found this, I suppose it was obvious given the single source-tree ambition that the per-board differences would be in the build properties, rather than defined in the code per-se.