diff options
author | tonokip <tonokip@gmail.com> | 2010-05-03 17:51:07 -0700 |
---|---|---|
committer | tonokip <tonokip@gmail.com> | 2010-05-03 17:51:07 -0700 |
commit | 2bd1060eaacd35a100bedd9e80281b890f3c1487 (patch) | |
tree | c907ac34acbc01ca04e95e487041327bbfea1d45 | |
parent | abffc3fb260a315af582e2303dca0a17a60d2f8f (diff) |
custom code M92 set axis_steps_per_unit
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index f9ae699..06169d6 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -29,6 +29,7 @@ // M83 - Set E codes relative while in Absolute Coordinates (G90) mode // M84 - Disable steppers until next move // M85 - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default) +// M92 - Set axis_steps_per_unit - same syntax as G92 //Stepper Movement Variables bool direction_x, direction_y, direction_z, direction_e; @@ -322,6 +323,12 @@ inline void process_commands() code_seen('S'); max_inactive_time = code_value()*1000; break; + case 92: // M92 + if(code_seen('X')) x_steps_per_unit = code_value(); + if(code_seen('Y')) y_steps_per_unit = code_value(); + if(code_seen('Z')) z_steps_per_unit = code_value(); + if(code_seen('E')) e_steps_per_unit = code_value(); + break; } } |