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
invert_motor_direction [2017/03/14 05:53]
Matthew Upp
invert_motor_direction [2018/12/22 04:21]
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>​ 
 +M562 E                ;Inverts Extruder/​Feeder Mechanism motor direction 
 +M500                  ;Saves changes to EEPROM 
 +Reboot printer to complete the process (turn off, then on) 
 +</​code>​ 
 + 
 + 
 +===== X-Axis ​=====
 <​code>​ <​code>​
-M562 E                ;Inverts Extruder motor direction 
 M562 X                ;Inverts X-Axis motor direction 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 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 M562 Z                ;Inverts Z-Axis motor direction
 M500                  ;Saves changes to EEPROM M500                  ;Saves changes to EEPROM
-Reboot printer to complete the process+Reboot printer to complete the process ​(turn off, then on)
 </​code>​ </​code>​
 +
 +
 +====== M562 Gcode Files ======
 +
 +==== 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.
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S245 ; 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.
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S245 ; 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.
 +
 +
 +M107 ; turn fan off in case it was already on
 +M106 S245 ; 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: 2018/12/22 04:21 by Matthew Upp