Skip to content

Conversation

@DerAndere1
Copy link
Contributor

@DerAndere1 DerAndere1 commented Dec 29, 2024

Description

  • G10 sets tool offsets and workspace offsets, in addition to filament retract
  • G49 disables tool length compensation
  • G43 enables tool length compensation

Requirements

HOTEND_OFFSET_X
HOTEND_OFFSET_Y
HOTEND_OFFSET_Z
CNC_COORDINATE_SYSTEMS

Benefits

This is a prerequisite for multi axis kinematics, because G10, G43 and G49 in existing Gcode must be handled correctly for safety.

Configurations

See changes to default Configuration.h for an example that does not change behaviour.
For testing of G43/G49, enable DEFAULT_TOOL_LENGTH_COMPENSATION

Related Issues

#23688

@DerAndere1 DerAndere1 force-pushed the tool_length_compensation branch from d5d7256 to 9d13224 Compare December 29, 2024 22:58
@DerAndere1 DerAndere1 changed the title Add G10, G43, G49 to handle existing G-like LinuxCNC Add G10, G43, G49 to interpret existing G-code like LinuxCNC Dec 29, 2024
@DerAndere1 DerAndere1 force-pushed the tool_length_compensation branch 5 times, most recently from bab7ffb to 4467fdc Compare January 4, 2025 21:36
@SL-RU
Copy link

SL-RU commented Jan 23, 2025

Thank you! This is exactly what I needed for using Marlin as CNC controller

@DerAndere1 DerAndere1 force-pushed the tool_length_compensation branch from 7c8acb2 to 0cb2516 Compare January 25, 2025 22:32
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 4354891 to efa1758 Compare March 28, 2025 01:57
@DerAndere1
Copy link
Contributor Author

I tested some G10 commands on hardware. Working as expected. It's also future-proof: Even works as intended when I add code for 5 Axis kinematics and switch Tool Center Point Control on/off (G43.4/G49)

@DerAndere1 DerAndere1 marked this pull request as ready for review April 25, 2025 20:47
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 3791e7d to 6ea4a16 Compare June 2, 2025 21:51
@DerAndere1 DerAndere1 force-pushed the tool_length_compensation branch from d69cf27 to e4dd6d4 Compare October 22, 2025 16:53
@thinkyhead thinkyhead force-pushed the bugfix-2.1.x branch 3 times, most recently from 52532da to 06c6c47 Compare November 20, 2025 04:01
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