From 73f4c6cd0077310ca748c13f5a7e223989cfe92d Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Thu, 16 Mar 2023 13:11:34 +0100 Subject: tmc: SET_TMC_FIELD VELOCITY Ability to specify `VELOCITY` as a parameter for SET_TMC_FIELD. Useful for configuring at runtime the TSTEP based fields of the driver. Signed-off-by: Alex Voinea --- docs/G-Codes.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 48b074e6..b28f8ab6 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -1236,13 +1236,16 @@ if StealthChop2 is used, the stepper must be held at standstill for >130ms so that the driver executes the AT#1 calibration. #### SET_TMC_FIELD -`SET_TMC_FIELD STEPPER= FIELD= VALUE=`: This will -alter the value of the specified register field of the TMC driver. +`SET_TMC_FIELD STEPPER= FIELD= VALUE= VELOCITY=`: +This will alter the value of the specified register field of the TMC driver. This command is intended for low-level diagnostics and debugging only because changing the fields during run-time can lead to undesired and potentially dangerous behavior of your printer. Permanent changes should be made using the printer configuration file instead. No sanity checks are performed for the given values. +A VELOCITY can also be specified instead of a VALUE. This velocity is +converted to the 20bit TSTEP based value representation. Only use the VELOCITY +argument for fields that represent velocities. ### [toolhead] -- cgit v1.2.3-70-g09d2