User Tools

Site Tools


invert_motor_direction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
invert_motor_direction [2017/03/14 05:53]
Matthew Upp
invert_motor_direction [2019/04/02 07:49]
Matthew Upp
Line 1: Line 1:
-==== M562 - Invert Stepper Motor Direction =====+~~NOTOC~~ 
 + 
 +====== M562 - Invert Stepper Motor Direction ​====== 
 + 
 +---- 
 + 
 +[[invert_motor_direction#​m562_gcode_files|See below for downloadable gcode files that can be ran from a microSD card.]] 
 + 
 +===== Extruder ​=====
 <​code>​ <​code>​
-M562 E                ;Inverts Extruder ​motor direction +M562 E     ​; Inverts Extruder/Feeder Mechanism ​motor direction 
-M562 X                ;Inverts X-Axis motor direction +M500       ​; Saves changes to EEPROM 
-M562 Y                ;Inverts Y-Axis motor direction +Reboot printer to complete the process ​(turn off, then on)
-M562 Z                ;Inverts Z-Axis ​motor direction +
-M500                  ;Saves changes to EEPROM +
-Reboot printer to complete the process+
 </​code>​ </​code>​
 +
 +
 +===== X-Axis =====
 +<​code>​
 +M562 X     ; Inverts X-Axis motor direction
 +M500       ; Saves changes to EEPROM
 +Reboot printer to complete the process (turn off, then on)
 +</​code>​
 +
 +
 +===== Y-Axis =====
 +<​code>​
 +M562 Y     ; Inverts Y-Axis motor direction
 +M500       ; Saves changes to EEPROM
 +Reboot printer to complete the process (turn off, then on)
 +</​code>​
 +
 +
 +===== Z-Axis =====
 +<​code>​
 +M562 Z     ; Inverts Z-Axis motor direction
 +M500       ; Saves changes to EEPROM
 +Reboot printer to complete the process (turn off, then on)
 +</​code>​
 +\\
 +
 +----
 +\\
 +===== Gcode Files =====
 +
 +
 +==== M562 E ====
 +<file gcode invert_extruder.gcode>​
 +; G-Code generated by Matthew Upp
 +; Invert Extruder
 +; Possibly helpful if you need to invert the extruder after switching to a different type extruder/​feed mechanism
 +; for Malyan M200 & MP Select Mini
 +
 +; Lines with only a semicolon are for making line separations only.
 +; Please add a blank line to the end of the file while editing.
 +; DokuWiki Code Blocks deletes blank lines at the end of the block but 
 +; g-code files should end with a single blank line at the end. 
 +; (It is not a big deal if you don't add the line at the end.)
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S237 ; turn fan on to signify start
 +
 +;  ​
 +M562 E ; invert extruder
 +M500 ; save currently loaded settings to EEPROM
 +
 +;
 +M400 ; wait for current moves to finish
 +M107 ; turn fan off to signify completion
 +M84 ; disable motors
 +
 +</​file>​
 +
 +
 +==== M562 X ====
 +<file gcode invert_x-axis.gcode>​
 +; G-Code generated by Matthew Upp
 +; Invert X-Axis ​
 +; for Malyan M200 & MP Select Mini
 +
 +; Lines with only a semicolon are for making line separations only.
 +; Please add a blank line to the end of the file while editing.
 +; DokuWiki Code Blocks deletes blank lines at the end of the block but 
 +; g-code files should end with a single blank line at the end. 
 +; (It is not a big deal if you don't add the line at the end.)
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S237 ; turn fan on to signify start
 +;
 +;
 +M562 X ; invert X-Axis
 +M500 ; save currently loaded settings to EEPROM
 +;
 +;
 +G28 X ; home X to verify the X-axis is inverted
 +G1 X60 F1000 ; move X-Axis to center of the bed to signify completion
 +M400 ; wait for current moves to finish
 +M107 ; turn fan off to signify completion
 +M84 ; disable motors
 +
 +</​file>​
 +
 +
 +==== M562 Y ====
 +<file gcode invert_y-axis.gcode>​
 +; G-Code generated by Matthew Upp
 +; Invert Y-Axis ​
 +; for Malyan M200 & MP Select Mini
 +
 +; Lines with only a semicolon are for making line separations only.
 +; Please add a blank line to the end of the file while editing.
 +; DokuWiki Code Blocks deletes blank lines at the end of the block but 
 +; g-code files should end with a single blank line at the end. 
 +; (It is not a big deal if you don't add the line at the end.)
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S237 ; turn fan on to signify start
 +
 +;  ​
 +M562 Y ; invert Y-Axis
 +M500 ; save currently loaded settings to EEPROM
 +
 +;
 +G28 Y ; home Y to verify the Y-axis is inverted
 +G1 Y60 F1000 ; move Y-Axis to center of the bed to signify completion
 +M400 ; wait for current moves to finish
 +M107 ; turn fan off to signify completion
 +M84 ; disable motors
 +
 +</​file>​
 +
 +
 +==== M562 Z ====
 +<file gcode invert_z-axis.gcode>​
 +; G-Code generated by Matthew Upp
 +; Invert Z-Axis
 +; Possibly helpful if you need to invert the Z-axis after switching to a NEMA 17 motor and lead screw
 +; for Malyan M200 & MP Select Mini
 +
 +; Lines with only a semicolon are for making line separations only.
 +; Please add a blank line to the end of the file while editing.
 +; DokuWiki Code Blocks deletes blank lines at the end of the block but 
 +; g-code files should end with a single blank line at the end. 
 +; (It is not a big deal if you don't add the line at the end.)
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S237 ; turn fan on to signify start
 +
 +;  ​
 +M562 Z ; invert Z-Axis
 +M500 ; save currently loaded settings to EEPROM
 +
 +;
 +G28 Z ; home Z to verify the Z-axis is inverted
 +G1 Z10 F1000 ; move Z-Axis up 10mm to signify completion
 +M400 ; wait for current moves to finish
 +M107 ; turn fan off to signify completion
 +M84 ; disable motors
 +
 +</​file>​
 +
  
  
invert_motor_direction.txt · Last modified: 2019/04/02 07:51 by Matthew Upp