From cdc6beaf6f1abd58146e4fc44092c1fe679c898b Mon Sep 17 00:00:00 2001
From: 3d-gussner <3d.gussner@gmail.com>
Date: Wed, 4 Dec 2019 12:25:33 +0100
Subject: [PATCH] Added M910 -> M918
---
Firmware/Marlin_main.cpp | 110 ++++++++++++++++++++++-----------------
1 file changed, 63 insertions(+), 47 deletions(-)
diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp
index 7181b730..248ce989 100755
--- a/Firmware/Marlin_main.cpp
+++ b/Firmware/Marlin_main.cpp
@@ -8072,7 +8072,9 @@ Sigma_Exit:
#ifdef TMC2130_SERVICE_CODES_M910_M918
/*!
- ### M910 - TMC2130 init G32: Undock Z Probe sled
+ ### M910 - TMC2130 init M910: TMC2130 init
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
*/ -----------------------------------------------
case 910:
{
@@ -8081,8 +8083,16 @@ Sigma_Exit:
break;
/*!
- ### M911 - Set TMC2130 holding currents G32: Undock Z Probe sled
- */ -------------------------------------------------
+ ### M911 - Set TMC2130 holding currents M911: Set TMC2130 holding currents
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
+ M911 [ X | Y | Z | E ]
+
+ - `X` - X stepper driver holding current value
+ - `Y` - Y stepper driver holding current value
+ - `Z` - Z stepper driver holding current value
+ - `E` - Extruder stepper driver holding current value
+ */ -------------------------------------------------
case 911:
{
if (code_seen('X')) tmc2130_set_current_h(0, code_value());
@@ -8093,7 +8103,16 @@ Sigma_Exit:
break;
/*!
- ### M912 - Set TMC2130 running currents G32: Undock Z Probe sled
+ ### M912 - Set TMC2130 running currents M912: Set TMC2130 running currents
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
+ M912 [ X | Y | Z | E ]
+
+
+ - `X` - X stepper driver running current value
+ - `Y` - Y stepper driver running current value
+ - `Z` - Z stepper driver running current value
+ - `E` - Extruder stepper driver running current value
*/ -----------------------------------------------
case 912:
{
@@ -8105,7 +8124,9 @@ Sigma_Exit:
break;
/*!
- ### M913 - Print TMC2130 currents G32: Undock Z Probe sled
+ ### M913 - Print TMC2130 currents M913: Print TMC2130 currents
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+ Shows TMC2130 currents.
*/ -----------------------------
case 913:
{
@@ -8114,7 +8135,8 @@ Sigma_Exit:
break;
/*!
- ### M914 - Set TMC2130 normal mode G32: Undock Z Probe sled
+ ### M914 - Set TMC2130 normal mode M914: Set TMC2130 normal mode
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
*/ ------------------------------
case 914:
{
@@ -8125,7 +8147,8 @@ Sigma_Exit:
break;
/*!
- ### M915 - Set TMC2130 silent mode G32: Undock Z Probe sled
+ ### M915 - Set TMC2130 silent mode M915: Set TMC2130 silent mode
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
*/ ------------------------------
case 915:
{
@@ -8136,7 +8159,16 @@ Sigma_Exit:
break;
/*!
- ### M916 - Set TMC2130 Stallguard sensitivity threshold G32: Undock Z Probe sled
+ ### M916 - Set TMC2130 Stallguard sensitivity threshold M916: Set TMC2130 Stallguard sensitivity threshold
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
+ M916 [ X | Y | Z | E ]
+
+
+ - `X` - X stepper driver stallguard sensitivity threshold value
+ - `Y` - Y stepper driver stallguard sensitivity threshold value
+ - `Z` - Z stepper driver stallguard sensitivity threshold value
+ - `E` - Extruder stepper driver stallguard sensitivity threshold value
*/ -------------------------------------------------------
case 916:
{
@@ -8150,7 +8182,16 @@ Sigma_Exit:
break;
/*!
- ### M917 - Set TMC2130 PWM amplitude offset (pwm_ampl) G32: Undock Z Probe sled
+ ### M917 - Set TMC2130 PWM amplitude offset (pwm_ampl) M917: Set TMC2130 PWM amplitude offset (pwm_ampl)
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
+ M917 [ X | Y | Z | E ]
+
+
+ - `X` - X stepper driver PWM amplitude offset value
+ - `Y` - Y stepper driver PWM amplitude offset value
+ - `Z` - Z stepper driver PWM amplitude offset value
+ - `E` - Extruder stepper driver PWM amplitude offset value
*/ --------------------------------------------------------------
case 917:
{
@@ -8162,7 +8203,16 @@ Sigma_Exit:
break;
/*!
- ### M918 - Set TMC2130 PWM amplitude gradient (pwm_grad) G32: Undock Z Probe sled
+ ### M918 - Set TMC2130 PWM amplitude gradient (pwm_grad) M918: Set TMC2130 PWM amplitude gradient (pwm_grad)
+ Not active in default, only if `TMC2130_SERVICE_CODES_M910_M918` is defined in source code.
+
+ M918 [ X | Y | Z | E ]
+
+
+ - `X` - X stepper driver PWM amplitude gradient value
+ - `Y` - Y stepper driver PWM amplitude gradient value
+ - `Z` - Z stepper driver PWM amplitude gradient value
+ - `E` - Extruder stepper driver PWM amplitude gradient value
*/ -------------------------------------------------------------
case 918:
{
@@ -8794,45 +8844,11 @@ Sigma_Exit:
}break;
#ifdef TMC2130
- //! ### D2130 - TMC2130 Trinamic stepper controller
- // ---------------------------
-
-
- /*!
-
-
- D2130[subcommand][value]
-
- - :
- - '0' current off
- - '1' current on
- - '+' single step
- - * value sereval steps
- - '-' dtto oposite direction
- - '?' read register
- - * "mres"
- - * "step"
- - * "mscnt"
- - * "mscuract"
- - * "wave"
- - '!' set register
- - * "mres"
- - * "step"
- - * "wave"
- - '@' home calibrate axis
-
- Example:
-
- D2130E?wave ... print extruder microstep linearity compensation curve
-
- D2130E!wave0 ... disable extruder linearity compensation curve, (sine curve is used)
-
- D2130E!wave220 ... (sin(x))^1.1 extruder microstep compensation curve used
- */
/*!
*
- ### D2130 - Trinamic stepper controller D2130: Trinamic stepper controller
- Unsing G28 without any paramters will perfom on the Prusa i3 printers home AND mesh bed leveling, while the default G-code G28 is just homeing the printer
+ ### D2130 - Trinamic stepper controller D2130: Trinamic stepper controller
+
+ @todo Please review by owner of the code. RepRap Wiki Gcode needs to be updated after review of owner as well.
D2130 [ Axis | Command | Subcommand | Value ]