Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/gcode/m-code.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 1 addition & 4 deletions src/hal/components/orient.comp
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down