Skip to content

Tips for implementing rotational axis with Arduino Uno and Grbl #194

Answered by fra589
tarsisprado asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tarsisprado

I don't have as great a mastery of the original Grbl on Atmega 328 as I have on my Grbl-Mega-5X version ...
To start, in the gcode.c file, you can replace X and Y in lines 348 and 349 with A and B:

          case 'X': word_bit = WORD_X; gc_block.values.xyz[X_AXIS] = value; axis_words |= (1<<X_AXIS); break;
          case 'Y': word_bit = WORD_Y; gc_block.values.xyz[Y_AXIS] = value; axis_words |= (1<<Y_AXIS); break;

become:

          case 'A': word_bit = WORD_X; gc_block.values.xyz[X_AXIS] = value; axis_words |= (1<<X_AXIS); break;
          case 'B': word_bit = WORD_Y; gc_block.values.xyz[Y_AXIS] = value; axis_words |= (1<<Y_AXIS); break;

The internal names of the axis va…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fra589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants