Core XY printer. Z homing issues.
-
I'm homing z with a normal limit switch on a core XY machine. When I try to home z from the web interface, it works perfectly. When I home all axis from a gcode file the limit switch gets pressed, then the bet travels further up past the trigger height. Is there something I need to have in my slicer to tell it its a core XY?
; Configuration file for Duet WiFi (firmware version 1.17 to 1.19)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Thu Oct 26 2017 22:04:46 GMT-0500 (Central Daylight Time); General preferences
M111 S0 ; Debugging off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M555 P2 ; Set firmware compatibility to look like MarlinM667 S1 ; Select CoreXY mode
M208 X0 Y0 Z0 S1 ; Set axis minima
M208 X420 Y430 Z415 S0 ; Set axis maxima; Endstops
M574 S0 ; Define active low and unused microswitches
M574 X1 Y1 Z1 S1 ; Define active high microswitches
;M558 P0 X0 Y0 Z1 H5 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
;G31 P600 X0 Y0 Z2.5 ; Set Z probe trigger value, offset and trigger height
M557 X15:445 Y15:445 S20 ; Define mesh grid; Drives
M569 P0 S0 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes forwards
M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
M92 X80 Y80 Z800 E446.23 ; Set steps per mm
M566 X900 Y900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min)
M203 X10000 Y10000 Z1000 E1200 ; Set maximum speeds (mm/min)
M201 X800 Y800 Z250 E2500 ; Set accelerations (mm/s^2)
M906 X1600 Y1600 Z1600 E800 ; Set motor currents (mA)
M84 S0 ; Disable motor idle current reduction; Heaters
M143 S260 ; Set maximum heater temperature to 260C
M140 H-1 ; Disable heated bed
M305 P1 B4725 C7.060000e-8 ; Set thermistor + ADC parameters for heater 1; Tools
M563 P0 D0 H1 F1 ; Define tool 0
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C; Network
M550 PBig Boy ; Set machine name
M551 PNo1Knows ; Set password
M552 S1 ; Enable network
; Access point is configured manually via M587 by the user
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Fans
M106 P0 S1 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P2 S1 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off; Custom settings are not configured
; Miscellaneous
T0 ; Select first tool -
What do you have in your homeall.g and homez.g macros?
-
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool on Thu Oct 26 2017 22:04:46 GMT-0500 (Central Daylight Time); Relative positioning
G91; Lift Z
G1 Z5 F6000; Course home X or Y
G1 X-465 Y-465 F1800 S1
; Course home X
G1 X-465 S1
; Course home Y
G1 Y-465 S1; Move away from the endstops
G1 X5 Y5 F6000; Fine home X
G1 X-465 F360 S1
; Fine home Y
G1 Y-465 S1; Move Z down until the switch triggers
G1 Z-455 F1800 S1; Absolute positioning
G90; Tell the firmware where we are
G92 Z2.5; Uncomment the following line to lift the nozzle after probing
;G1 Z5 F100 -
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool on Thu Oct 26 2017 22:04:46 GMT-0500 (Central Daylight Time); Move quickly to X axis endstop and stop there (first pass)
G1 Z-465 F1800 S1; Go back a few mm
G91
G1 Z5 F6000
G90; Move slowly to X axis endstop once more (second pass)
G1 Z-465 F360 S1 -
This is some gcode that doesn't work.
G90
M82
M106 S255
G4 P500
M106 S0
M104 S205 T0
M109 S205 T0
G28 ; home all axes
G92 E0
G1 E-1.2000 F3000
G1 Z0.300 F990
; process Process2
; layer 1, Z = 0.300 -
Turns out the home all has an offset of 2.5 set after z home. Removed that and it appears to work fine.