https://docs.duet3d.com/
Help

Revision to Test axes or motors individually

David Crocker

+[title|Test axes or motors individually]
+
+
+To test a motor individually, first position the carriage(s) well away for the endstops. Then send G91 to select relative coordinates. Then use G1 S2 moves to test motors. Here is an example:
+
+{table
+|format=20%:20%:20%:20%:20%
+|! Command
+|! What to expect (Cartesian)
+|! What to expect (CoreXY)
+|! What to expect (Delta)
+|! What to expect (Scara)
+|--
+| G91
+|
+|
+|
+|
+|--
+| G1 S2 X10 F100
+| Print head moves 10mm in the +X direction
+| Print head moves 5mm in the +X direction and 5mm in the -Y direction
+| X carriage moves up 10mm
+| Proximal arm moves anticlockwise 10 degrees
+|--
+| G1 S2 X-10
+| Print head moves 10mm in the -X direction
+| Print head moves 5mm in the -X direction and 5mm in the +Y direction
+| X carriage moves down 10mm
+| Proximal arm moves clockwise 10 degrees
+|--
+| G1 S2 Y10
+| Print head moves 10mm in the +Y direction
+| Print head moves 5mm in the -X direction and 5mm in the +Y direction
+| Y carriage moves up 10mm
+| Distal arm moves anticlockwise 10 degrees
+|--
+| G1 S2 X-10
+| Print head moves 10mm in the -Y direction
+| Print head moves 5mm in the +X direction and 5mm in the -Y direction
+| Y carriage moves down 10mm
+| Distal arm moves clockwise 10 degrees
+|--
+| G1 S2 Z10
+| Print head moves 10mm in the +Z direction
+| Print head moves 10mm in the +Z direction
+| Z carriage moves up 10mm
+| Print head moves 10mm in the +Z direction
+|--
+| G1 S2 Z-10
+| Print head moves 10mm in the -Z direction
+| Print head moves 10mm in the -Z direction
+| Z carriage moves down 10mm
+| Print head moves 10mm in the -Z direction
+}
+
+In this example I specified a feed rate of 100mm/min in the G1 S2 X10 command, so the 10mm moves should each complete in 6 seconds.
+
+If any of the motors moves the wrong way, you can change the direction by editing the appropriate M569 command in config,g. Using standard drive assignment, P0 refers to the X motor, P1 to the Y motor, and P2 to the Z motor(s). Flip the direction by changing S1 to S0 or vice versa. For example, if the Y axis moves the wrong way and there is a M569 P1 S1 command in config.g, change S1 to S0 in that command.