reprappro / RepRapFirmware

OO C++ RepRap Firmware
Other
143 stars 120 forks source link

swap end and start of axis #43

Closed RFranta closed 10 years ago

RFranta commented 10 years ago

I am trying to upload T3P3 firmware on duet board. Printer is working fine, but I have just one problem. After pressing home all axis on Pronterface all axis are homed corectly, but when I send M114 it's like X:194 Y:197, Z:195, but I would like to have everithing on 0 after homing, what should I change in firmware? I have now default setting in firmware, changed is just build area.

Thank you

RRP-support commented 10 years ago

Which branch of the firmware are you trying to install? There isn't a 'T3P3' branch. If you mean the firmware here https://github.com/T3P3/RepRapFirmware you need to contact Tony Lock at Think3DPrint3D; I'm not sure what state it's in.

You can control the homing functions in the firmware in this repository. If you look at the gcode homing files in https://github.com/reprappro/RepRapFirmware/tree/master/SD-image/sys you will see that you can make the printer have any homing action you want. The firmware calls these 'macros' when G28 is called.

I hope that helps.

Ian RepRapPro tech support

T3P3 commented 10 years ago

Hi RFranta

The Think3dPrint3d multi extruder branch of RepRap Firmware: https://github.com/T3P3/RepRapFirmware/tree/Multi_Extruder_Test Is maintained by me as a test branch for multi extruder support.

As Ian says the homing commands in here: https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/homeall.g https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/homex.g https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/homey.g https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/homez.g

are setup to home a Mendel90 printer which homes to MAX on all three axis but they are easily changed to take these as MIN.

So for example changing the homex.g for minimum would be:

G90
G1 X-2000 F6000 S1 ;approach X MIN quickly
G91
G1 X5 ;back of 5
G90
G1 X-2000 F300 S1 ;approach X <in slowly
G92 X0 ;X axis MIN

Cheers

Tony

RFranta commented 10 years ago

Thank you very much. That's a help a lot. Just my extruder is too fast, I changed fourth item in this array on 90:

define DRIVE_STEPS_PER_UNIT {50, 50, 4000.0, 90, 655.0, 655.0, 655.0, 655.0}

but it doesn't help. What should I change to make speed of extrduding slower please?

T3P3 commented 10 years ago

Hi RFranta

So the values you refer to are the firmware defaults, these can also be changed by Gcode as part of the setup configuration.

Check out https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/config.g

You can see the

T0 ; Select extruder 0
M92 E650; Set extruder steps/mm
M906 .E800 ; Motor current (mA)
T1 ; Select extruder 1
M92 E650; Set extruder steps/mm
M906 .E800 ; Motor current (mA)
T2 ; Select extruder 2
......

These lines use The M92 command to set the steps/mm of the selected tool, along with the motor current for that extruder.

Cheers

Tony

RFranta commented 10 years ago

Hi Tony,   thank you very much for answers. Your firmware works really great. Well done! Great work!   RFranta


Od: Tony notifications@github.com Komu: "reprappro/RepRapFirmware" RepRapFirmware@noreply.github.com Datum: 22.04.2014 22:14 Předmět: Re: [RepRapFirmware] swap end and start of axis (#43)

Hi RFranta So the values you refer to are the firmware defaults, these can also be changed by Gcode as part of the setup configuration. Check out https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/config.g https://github.com/T3P3/RepRapFirmware/blob/Multi_Extruder_Test/SD-image/sys/config.g You can see the T0 ; Select extruder 0M92 E650; Set extruder steps/mmM906 .E800 ; Motor current (mA)T1 ; Select extruder 1M92 E650; Set extruder steps/mmM906 .E800 ; Motor current (mA)T2 ; Select extruder 2......These lines use The M92 command to set the steps/mm of the selected tool, along with the motor current for that extruder. Cheers Tony — Reply to this email directly or view it on GitHub https://github.com/reprappro/RepRapFirmware/issues/43#issuecomment-41089866.