From 576c28fd343e76515f884113cd151440566a5018 Mon Sep 17 00:00:00 2001 From: david mueller Date: Wed, 5 Aug 2026 10:11:06 +0100 Subject: [PATCH 1/2] Docs: M19 does not use encoder index signal --- docs/src/gcode/m-code.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/gcode/m-code.adoc b/docs/src/gcode/m-code.adoc index bd388ccd0da..c36788c709e 100644 --- a/docs/src/gcode/m-code.adoc +++ b/docs/src/gcode/m-code.adoc @@ -233,7 +233,7 @@ M19 R- Q- [P-] [$-] M19 is a command of modal group 7, like M3, M4 and M5. M19 is cleared by any of M3,M4,M5. -Spindle orientation requires a quadrature encoder with an index to sense the +Spindle orientation requires a quadrature encoder to sense the spindle shaft position and direction of rotation. INI Settings in the [RS274NGC] section: From 2a8e5aba2c40fa663af6e08203b7ff9f4b837603 Mon Sep 17 00:00:00 2001 From: david mueller Date: Wed, 5 Aug 2026 10:12:14 +0100 Subject: [PATCH 2/2] Man: Remove outdated logic description from man page The relevant logic was changed in Commit b2cd764 but the man page was not updated. The Functionality of the logic is likely easier to understand by looking at the code. --- src/hal/components/orient.comp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hal/components/orient.comp b/src/hal/components/orient.comp index 554153a58e2..e6abeff411f 100644 --- a/src/hal/components/orient.comp +++ b/src/hal/components/orient.comp @@ -25,10 +25,7 @@ command value, and fit with the motion spindle-orient support pins to support th The spindle is assumed to have stopped in an arbitrary position. The spindle encoder position is linked to the \\fBposition\\fR pin. The current value of the position pin is sampled on a positive edge on the \\fBenable\\fR pin, and -\\fBcommand\\fR is computed and set as follows: floor(number of -full spindle revolutions -in the \\fBposition\\fR sampled on positive edge) -plus \\fBangle\\fR/360 (the fractional revolution) +1/-1/0 depending on \\fBmode\\fR. +\\fBcommand\\fR is computed and set depending on \\fBmode\\fR. The \\fBmode\\fR pin is interpreted as follows: