From 2bd1060eaacd35a100bedd9e80281b890f3c1487 Mon Sep 17 00:00:00 2001 From: tonokip Date: Mon, 3 May 2010 17:51:07 -0700 Subject: custom code M92 set axis_steps_per_unit --- Tonokip_Firmware/Tonokip_Firmware.pde | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Tonokip_Firmware') 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. 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; } } -- cgit v1.2.1