mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-02-08 09:10:56 -07:00
manual_stepper: Rework STOP_ON_ENDSTOP parameter
Replace the integer values of STOP_ON_ENDSTOP with string values and deprecate the older format. The newer string values should make the commands easier to understand and allow for more homing options in the future. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
dd94441e74
commit
4fb3b24c8d
4 changed files with 52 additions and 22 deletions
|
|
@ -8,6 +8,12 @@ All dates in this document are approximate.
|
|||
|
||||
## Changes
|
||||
|
||||
20260207: The `MANUAL_STEPPER` G-Code command `STOP_ON_ENDSTOP`
|
||||
parameter has changed. See the
|
||||
[MANUAL_STEPPER](G-Codes.md#manual_stepper) documentation for
|
||||
details. Using the previously supported integer values (-2, -1, 1, 2)
|
||||
is deprecated and will be removed in the near future.
|
||||
|
||||
20260109: The status value `{printer.probe.last_z_result}` is
|
||||
deprecated; it will be removed in the near future. Use
|
||||
`{printer.probe.last_probe_position}` instead, and note that this new
|
||||
|
|
|
|||
|
|
@ -989,22 +989,33 @@ enabled.
|
|||
|
||||
#### MANUAL_STEPPER
|
||||
`MANUAL_STEPPER STEPPER=config_name [ENABLE=[0|1]]
|
||||
[SET_POSITION=<pos>] [SPEED=<speed>] [ACCEL=<accel>] [MOVE=<pos>
|
||||
[STOP_ON_ENDSTOP=[1|2|-1|-2]] [SYNC=0]]`: This command will alter the
|
||||
state of the stepper. Use the ENABLE parameter to enable/disable the
|
||||
stepper. Use the SET_POSITION parameter to force the stepper to think
|
||||
it is at the given position. Use the MOVE parameter to request a
|
||||
movement to the given position. If SPEED and/or ACCEL is specified
|
||||
then the given values will be used instead of the defaults specified
|
||||
in the config file. If an ACCEL of zero is specified then no
|
||||
acceleration will be performed. If STOP_ON_ENDSTOP=1 is specified then
|
||||
the move will end early should the endstop report as triggered (use
|
||||
STOP_ON_ENDSTOP=2 to complete the move without error even if the
|
||||
endstop does not trigger, use -1 or -2 to stop when the endstop
|
||||
reports not triggered). Normally future G-Code commands will be
|
||||
scheduled to run after the stepper move completes, however if a manual
|
||||
stepper move uses SYNC=0 then future G-Code movement commands may run
|
||||
in parallel with the stepper movement.
|
||||
[SET_POSITION=<pos>] [SPEED=<speed>] [ACCEL=<accel>] [MOVE=<pos>]
|
||||
[SYNC=0]]`: This command will alter the state of the stepper. Use the
|
||||
ENABLE parameter to enable/disable the stepper. Use the SET_POSITION
|
||||
parameter to force the stepper to think it is at the given
|
||||
position. Use the MOVE parameter to request a movement to the given
|
||||
position. If SPEED and/or ACCEL is specified then the given values
|
||||
will be used instead of the defaults specified in the config file. If
|
||||
an ACCEL of zero is specified then no acceleration will be
|
||||
performed. Normally future G-Code commands will be scheduled to run
|
||||
after the stepper move completes, however if a manual stepper move
|
||||
uses SYNC=0 then future G-Code movement commands may run in parallel
|
||||
with the stepper movement.
|
||||
|
||||
`MANUAL_STEPPER STEPPER=config_name [SPEED=<speed>] [ACCEL=<accel>]
|
||||
MOVE=<pos> STOP_ON_ENDSTOP=<check_type>`: If STOP_ON_ENDSTOP is
|
||||
specified then the move will end early if an endstop event occurs. The
|
||||
`STOP_ON_ENDSTOP` parameter may be set to one of the following values:
|
||||
|
||||
* `home`: The movement will stop when the endstop reports triggered
|
||||
and the final position of the manual_stepper will be set such that
|
||||
the trigger position matches the position specified in the `MOVE`
|
||||
parameter.
|
||||
* `inverted_home`: As above, however, the movement will stop when the
|
||||
endstop reports it is in a non-triggered state.
|
||||
* `try_home`, `try_inverted_home`: As above, but no error will be
|
||||
reported if the movement fully completes without an endstop event
|
||||
stopping the move early.
|
||||
|
||||
`MANUAL_STEPPER STEPPER=config_name GCODE_AXIS=[A-Z]
|
||||
[LIMIT_VELOCITY=<velocity>] [LIMIT_ACCEL=<accel>]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue