Skip to content

feat: Indexed (4th) axis features#490

Open
pmzandbergen wants to merge 8 commits into
GridSpace:masterfrom
pmzandbergen:feat/configurable-4th-axis-a-or-b
Open

feat: Indexed (4th) axis features#490
pmzandbergen wants to merge 8 commits into
GridSpace:masterfrom
pmzandbergen:feat/configurable-4th-axis-a-or-b

Conversation

@pmzandbergen

@pmzandbergen pmzandbergen commented Jun 12, 2026

Copy link
Copy Markdown
  1. Configurable indexed axis: A by default, optionally B (BC)
  2. Capability to swap 4th axis between X (default) and Y (BC)
  3. Support for cylindrical stock (WIP)

I've added features 1 and 2 to fix some difficulties with the Snapmaker Artisan. It is using B as a rotary axis and the rotary axis is aligned with the Y axis.

Feature 3, supporting cylindrical stock, prevents unnecessary (air) cutting.

@pmzandbergen pmzandbergen changed the title feat: Configurable 4th axis (A or B) Draft: feat: Configurable 4th axis (A or B) Jun 12, 2026
@pmzandbergen pmzandbergen changed the title Draft: feat: Configurable 4th axis (A or B) Draft: feat: Indexed (4th) axis features Jun 12, 2026
@pmzandbergen pmzandbergen changed the title Draft: feat: Indexed (4th) axis features feat: Indexed (4th) axis features Jun 12, 2026
@stewartoallen

Copy link
Copy Markdown
Contributor

look for the AXISMAP and SCALE features under CAM macros for an existing way to accomplish this https://docs.grid.space/kiri-moto/gcode-macros

@pmzandbergen

Copy link
Copy Markdown
Author

look for the AXISMAP and SCALE features under CAM macros for an existing way to accomplish this https://docs.grid.space/kiri-moto/gcode-macros

AXISMAP is indeed a way to solve the A -> B issue. Swapping X and Y using AXISMAP when using the rotary on the Y axis is, in my opinion, risky. A user can easily forget to remove this marco when the rotary is not being used.

Or can I use the "Reset A" for this purpose? If so, I'll remove the axis alignment features and just focus on the cylindrical stock (which seems to be working OK on my machine).

@pmzandbergen

Copy link
Copy Markdown
Author

Or can I use the "Reset A" for this purpose? If so, I'll remove the axis alignment features and just focus on the cylindrical stock (which seems to be working OK on my machine).

Tested, it needs to be in the header. Maybe add some kind of constraint, depending on whether the fourth axis is enabled or not.

Summary

  • Swapping A <-> B and X <-> Y is already possible
  • Swapping X <-> Y is invisible in the UI which could be improved
  • Would be nice if the AXISMAP macro (or any macro) can be enabled / disabled based on device parameters (e.g. 4th axis being enabled or disabled). This is not a real must-have since you would need a separate device profile anyway
  • Cylindrical stock is a new feature

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

Successfully merging this pull request may close these issues.

2 participants