Welcome! Log In Create A New Profile

Advanced

Z axis homing issues and extruder problems

Posted by 1andchin 
Z axis homing issues and extruder problems
February 18, 2016 04:29AM
Hi all,

Background info: I'm on the latest DC42 firmware and using a Duet 0.85. The machine is a cartesian and the sys example I'm using is based on a RRP huxley, however it's a completely different machine that will be used for cold extrusion. I currently have a PanelDUE and Pronterface to use as my input devices.

So I've had trouble getting my endstops (onto switches) to work with the latest DC42 firmware. Thankfully, after quite a bit of faff, I've managed to get the home X, home Y and (individual) home Z command to work.

The problem is that when I try the "home all" command, my x and y axis home fine, but then the Z axis proceeds to ram through the endstop. In addition, when I try to send an example print to it (just to check movement), it homes on the x and y and rams through the endstop forcing me to kill the power. I'm not sure exactly what's going on as the individual home z command works fine. I've attached my code for any suggestions/ tips.

The other problem I have is that on my dual extruder set up, I can get extruder 1 working, but not extruder 0. I'm confused as to why this is as I thought I had set the file up right. Any help is appreciated smiling smiley

Config file
; Huxley Duo config file for dc42 Duet firmware
; Based on RepRapPro version 1.04
M111 S0							; Debug off
M550 PMyHuxleyDuo					; Machine name (can be anything you like)
M551 Preprap						; Machine password (used for FTP access)
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0x14			; MAC Address
M552 P0.0.0.0						; IP address (0 = use DHCP)
M553 P255.255.255.0					; Netmask
M554 P192.168.1.1					; Gateway
M555 P2							; Set output to look like Marlin
G21							; Work in millimetres
G90							; Send absolute coordinates...
M83							; ...but relative extruder moves
M575 P1 B115200 S1                  			; Set auxiliary serial port baud rate and require checksum (for PanelDue)
	



M574 X1 Y1 Z1 S1					; set endstop configuration (Y endstop only, at low end, active high)


M569 P0 S1						; Reverse the X motor
M569 P3 S0						; Don't reverse the extruder motor
M906 X800 Y800 Z800 E800 I0.1				; Set motor currents (mA)


; NO THERMISTORS SO NOT NEEDED

	;M305 P0 T100000 R4700               			; bed thermistor is 100K with 4K7 series resistor
	;M305 P1 R4700                       			; first nozzle thermistor has 4K7 series resistor
	;M305 P2 R4700                       			; second nozzle thermistor has 4K7 series resistor


M92 E660						; Set extruder steps per mm
M92 X92 Y80 Z1025 E420		    			; XYZ E calibration

M558 P0							; Use a modulated Z probe (change to P1 if you have a dc42 diff IR zprobe)
	;G31 Z0.6 P550						; Set the probe height and threshold (deliberately too high to avoid bed crashes on initial setup)
M556 S78 X0 Y0 Z0					; Put your axis compensation here
M201 X3000 Y3000 Z150 E500				; Accelerations (mm/s^2)
M203 X15000 Y15000 Z100 E3600				; Maximum speeds (mm/min)
M566 X200 Y200 Z30 E20					; Maximum jerk rates mm/minute


M563 P0 D0 						; Define tool 0

G10 P0 S0 R0						; Set tool 0 operating and standby temperatures

M563 P1 D1 						; Define tool 1 Uncomment if you have a dual colour upgrade
G10 P1 X19 S0 R0					; Set tool 1 operating and standby temperatures Uncomment if you have a dual colour upgrade
M208 X280 Y274 Z200					; set axis maxima (adjust to suit your machine)
M208 X0 Y0 Z0 S1					; set axis minim (adjust to make X=0 and Y=0 the edge of the bed after homing)

T0							; select first hot end
T1

Home all file:

; Ormerod 2 homeall file for use with dc42 Duet firmware
; Adjust the bed upper and lower limits in config.g (M208 commands) to get the correct homing positions
G91
G1 Z4 F300 S1
G1 X-240 Y-240 F3000 S1
G1 X4 Y4 F600
G1 X-10 Y-10 Z-10 S1
G90
; Adjust the XY coordinates in the following to place the IR sensor over a suitable spot
; If you are using a dc42 IR sensor then you can change the coordinates to be near the centre of the bed
;G1 X45 Y5 F2000
G30
; This file leaves the head at the zprobe trigger height so that you can slip a piece of paper under it and then do G0 Z0 to check the height.
; If you prefer to send the printer to X0Y0Z0, un-comment the following lines
G1 X0 Y0 F5000
G1 Z0 F300

P.S I hope this is the correct place for a Duet code question, apologies if it isn't!
Re: Z axis homing issues and extruder problems
February 18, 2016 06:36AM
Your Z homing section is set up to use a Z probe for Z homing (G30 command0. To use a switch, it needs to be more like the X and Y homing sections, i.e. using a G1 S1 command to move the head in the Z direction until the homing switch is set. I suggest you also add parameters X0 Y0 Z0 to the M558 command. See [reprap.org] for more.

At the end of config.g, you are selecting the first hot end, then the second (which deselects the first one). If you want to drive the second extruder, you need to select the first one again with T0. If you want to drive both extruders at once, then instead of setting up two separate tools using M563 commands, set up one tool with two extruders - see the link I gave you above.

Edited 1 time(s). Last edit at 02/18/2016 06:40AM by dc42.



Large delta printer [miscsolutions.wordpress.com], E3D tool changer, Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Sorry, only registered users may post in this forum.

Click here to login