Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4th Axis (Rotary) #76

Closed
ronenoosthuizen opened this issue Jun 20, 2023 · 6 comments
Closed

4th Axis (Rotary) #76

ronenoosthuizen opened this issue Jun 20, 2023 · 6 comments

Comments

@ronenoosthuizen
Copy link

Hello,

We are currently using the repository with an ESP32. We are using it with 3 stepper motor to specify movement of an object in the X,Y,Z directions. We are looking to add a 4th motor that will enable the object rotate about the Z-axis. How can I set this up, if possible?

@terjeio
Copy link
Contributor

terjeio commented Jun 20, 2023

You will need to select or create a map file that supports at least four axes. In the Web Builder it is easy to create a binary by selecting four axis build, if compiling locally grbl/config.h has to be changed.

The fourth axis (A) can be set up as a rotary (this disables the inches to mm transform) by setting $376=1.
Note that there is an option to "fix" a feed rate issue that may cause slow movements when both linear and rotary motion is commanded at the same time. The need to apply this fix depends on the output from the CAM program. It can be activated by a checking a box in the Web Builder or by changing this symbol to 1.

@ronenoosthuizen
Copy link
Author

You will need to select or create a map file that supports at least four axes. In the Web Builder it is easy to create a binary by selecting four axis build, if compiling locally grbl/config.h has to be changed.

The fourth axis (A) can be set up as a rotary (this disables the inches to mm transform) by setting $376=1. Note that there is an option to "fix" a feed rate issue that may cause slow movements when both linear and rotary motion is commanded at the same time. The need to apply this fix depends on the output from the CAM program. It can be activated by a checking a box in the Web Builder or by changing this symbol to 1.

binary
firmware
$376

So I believe I created the Map File according to what is seen in "binary" above.
That left me with the files seen in "firmware" above.
If I want the axis to be rotary do I have to change the 0 to 1 in "$376" above?

What would the next steps look like?

@ronenoosthuizen
Copy link
Author

#68 (comment)

We are attempting to add this rotary axis to the same system referenced in the issue above. This brings up 2 questions:

  1. Are there any other changes to the code required to run the system?
  2. In the referenced issue above, we were never able to successfully compile the code you sent locally - any advice on avoiding these rebuild errors?

@ronenoosthuizen
Copy link
Author

@terjeio

I would like to clarify that in point 2 above, we were never able to recreate the code you sent ourselves and have it successfully compile locally. Do you have any advice for us?

With reference to the code you sent in #68, we are now looking to add the 4th axis (Rotary) modification, but since we have issues compiling it locally, would you be willing to compile it for us?

@petervanderwalt
Copy link
Contributor

petervanderwalt commented Jun 22, 2023

As you have selected the BlackBox, does this pertain the OpenBuilds BlackBox? If so, 4th axes firmware is made available to you in OpenBuildsCONTROL (https://software.openbuilds.com) > Wizards and tools > Firmware flashing tool already. Also refer to openbuilds.com for assistance

@terjeio
Copy link
Contributor

terjeio commented Jun 22, 2023

If I want the axis to be rotary do I have to change the 0 to 1 in "$376" above?

No, that is just a default value. $376 is a run time setting that overrides the default, send $376=1 from a terminal (e.g. puTTY) or a sender to the controller to set it.

What would the next steps look like?

Have you sucessfully programmed the processor with the files provided by the Web Builder?

Are there any other changes to the code required to run the system?

No.

In the referenced issue above, we were never able to successfully compile the code you sent locally - any advice on avoiding these rebuild errors?

Which errors?

...since we have issues compiling it locally, would you be willing to compile it for us?

I see no need for that if you can use the binary provided by the Web Builder. If I compile for you I will just send you the same files.

You can also use OpenBuilds Control sender to program the MCU even if it is not a BlackBox X32 but a "bare" board. You will then have to wire up the board to match the BlackBox X32 map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants