https://docs.duet3d.com/
Help

Revision to ConfiguringRepRapFirmwarePolarPrinter

David Crocker

+[summary_image|379]
+
[title|Configuring RepRapFirmware for a Polar printer]
[summary]This page describes how to set up the configuration files for Polar printers, the same firmware binary also supports Cartesian, Delta, CoreXY and other printers kinematics .[/summary]
-
-[summary_image|379]
You must provide homing files homeradius.g, homebed.g, homez.g and homeall.g.
-'''homeradius.g''' should use a G1 S1 Xnnn command to move towards the radius at which the homing switch triggers. Then back off a little and repeat at slower speed.
+'''homeradius.g''' should use a G1 H1 Xnnn command to move towards the radius at which the homing switch triggers. Then back off a little and repeat at slower speed.
-'''homebed.g''' should move the turntable in an appropriate direction until the homing switch is triggered. If there is no homing switch for the turntable, then set the radius motor to a known position using a G1 S2 X command and then use G92 to define the X and Y positions. Note that if you want to support power down and resume functionality, you must provide a turntable homing switch so that the bed position can be restored.
+'''homebed.g''' should move the turntable in an appropriate direction until the homing switch is triggered. If there is no homing switch for the turntable, then set the radius motor to a known position using a G1 H2 X command and then use G92 to define the X and Y positions. Note that if you want to support power down and resume functionality, you must provide a turntable homing switch so that the bed position can be restored.
'''homez.g''' is as for other types of printer, and '''homeall.g''' combines all the homing moves serially and/or concurrently as appropriate.
''' File homeradius.g'''
G91 ; relative movement
-G1 Z4 F100 ; ensure head is clear of the bed
-G1 S1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
-G1 S2 X5 ; move radius out by 5mm
-G1 S1 X-20 F600 ; move radius slowly to the endstop switch again
-G1 Z-4 F100 ; restore original Z position
+G1 H2 Z4 F100 ; ensure head is clear of the bed
+G1 H1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
+G1 H2 X5 ; move radius out by 5mm
+G1 H1 X-20 F600 ; move radius slowly to the endstop switch again
+G1 H2 Z-4 F100 ; restore original Z position
[/code]
''' File homebed.g'''
G91 ; relative movement
-G1 Z4 F100 ; ensure head is clear of the bed
+G1 H2 Z4 F100 ; ensure head is clear of the bed
G90 ; absolute movement
-G1 S2 X0 ; move to centre of bed
+G1 H2 X0 ; move to centre of bed
G92 X0 Y0 ; define current position as X0 Y0
G91 ; relative movement
-G1 Z-4 F100 ; restore original Z position
+G1 H2 Z-4 F100 ; restore original Z position
[/code]
''' File homez.g'''
G91 ; relative movement
-G1 Z4 F200 ; raise head 4mm to ensure it is above the Z probe trigger height
+G1 H2 Z4 F200 ; raise head 4mm to ensure it is above the Z probe trigger height
G90 ; back to absolute mode
G1 X0 Y0 ; put head over the centre of the bed, or wherever you want to probe
''' File homeall.g'''
G91 ; relative movement
-G1 Z4 F100 ; ensure head is clear of the bed
-G1 S1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
-G1 S2 X5 ; move radius out by 5mm
-G1 S1 X-20 F600 ; move radius slowly to the endstop switch again
+G1 H2 Z4 F100 ; ensure head is clear of the bed
+G1 H1 X-200 F3000 ; move radius towards minimum until the endstop switch is triggered
+G1 H2 X5 ; move radius out by 5mm
+G1 H1 X-20 F600 ; move radius slowly to the endstop switch again
''' Home bed'''
G90 ; absolute movement
-G1 S2 X10 ; move to 10mm from centre of bed
+G1 H2 X10 ; move to 10mm from centre of bed
G92 X10 Y0 ; define current position as X10 Y0
''' Home Z'''
== Testing the motors individually ==
-You can test the three motion motors individually by putting the printer in relative mode (G91 command) and then using the G1 command with S2 parameter. For example, sending G1 S2 X10 should increase the radius by 10mm, and sending G1 S2 Y-10 should rotate the turntable by 10 degrees clockwise.
+You can test the three motion motors individually by putting the printer in relative mode (G91 command) and then using the G1 command with H2 parameter. For example, sending G1 H2 X10 should increase the radius by 10mm, and sending G1 H2 Y-10 should rotate the turntable by 10 degrees clockwise.
If a motor moves the wrong way, you can reverse it by changing the corresponding M569 command in config.g. For example, if the radius motor moves the wrong way, change M569 P0 S1 to M569 P0 S0.

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes