error upgrading
-
Thanks for your help. I have an issue now with my piezo drilling into the bed when trying to home. Could you please point me in the right direction.
Here's my config.g; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v3.2.2 on Thu Jan 21 2021 05:12:35 GMT+0200 (South Africa Standard Time); ##### General preferences #####
;================================
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Tevo BlackWidow" ; set printer name; Using a PanelDue with Duet 3 and Duet 2 and RRF3 will require the following line "M575: Set serial comms parameters" being present in config.g.
; ========
M575 P1 S1 B57600; ##### Network #####
;====================
M552 S1 ; enable network
M587 S"Tech5_753CE0_EXT" P"landeach108" ; Configure access point. You can delete this line once connected
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; ##### Drives #####
;===================
M569 P0 S1 ; physical drive 0 goes forwards
M569 P1 S0 ; physical drive 1 goes backwards
M569 P2 S0 ; physical drive 2 goes backwards
M569 P3 S1 ; physical drive 3 goes forwards
M584 X0 Y1 Z2 E3 ; set drive mapping
M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation
M92 X80.00 Y80.00 Z1600.00 E426.90 ; set steps per mm
M566 X800.00 Y800.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X3000.00 Y3000.00 Z500.00 E1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z250.00 E250.00 ; set accelerations (mm/s^2)
M906 X1050 Y1050 Z900 E700 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S60 ; Set idle timeout; ##### Axis Limits #####
;========================
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X365 Y245 Z260 S0 ; set axis maxima; ##### Endstops ######
;======================
M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop
M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop
M574 Z1 S1 P"!zstop" ; configure active-high endstop for low end on Z via pin !Zstop
; =======================
; ##### Endstops old 2.05 Firmware working Settings #####
;==============================================
;M574 X1 S0 ; Set active low end stops
;M574 Y1 S0 ; Set active low end stops
;M574 Z2 S2 ; configure Z-probe endstop for high end on Z
; =======================; ##### Z-Probe Precision Piezo #####
; ===================
M558 P5 C"^zprobe.in" H5 F450 T5000 ; set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
M557 X10:328 Y10:210 S20 ; define mesh grid
; ==============================================
; ##### Z-Probe old 2.05 Firmware working Settings #####
;==============================================
; M558 P8 R1 I1 H5 F450 T5000 ; Set Z probe type to inverted, unfiltered piezo and the dive height + speeds
; G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
; M557 X10:328 Y10:210 P5 ; Define mesh grid
; ====================================; ##### Heaters #####
; ===================
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 A94.6 C545.4 D2.4 S1.00 V24.1 B0 ;PID tuning for Bed
; M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 A309.5 C152.4 D4.9 S1 S1 V24.1 ;PID tuning for Nozzel
; M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M143 H1 S310 ; set temperature limit for heater 1 to 310C; ##### Fans #####
; =================
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 C"Hot End" S0 H-1 ; set fan 0 name and value. Thermostatic control is turned off
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 C"Parts Fan" S1 H1 T45 ; set fan 1 name and value. Thermostatic control is turned on; ##### Tools #####
; =================
M563 P0 S"Mosquito" D0 H1 F0 ; 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; Custom settings are not defined
; ##### Miscellaneous #####
; =========================
M575 P1 S1 B57600 ; enable support for PanelDue
M501 ; load saved parameters from non-volatile memory; ######### Automatic power saving ##########
;============================================
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss; ########## Epilogue ##########
;===============================
M501 ; Run config-override.g
T0 ; select first tool -
did you change the config by hand or generated a new one?
-
post your homing file
-
Hi, I generated a new one then Formatted it a bit as you can see. Its like the Duet is not registering that the Z piezo has triggered even though it has. I would think that I've got something wrong with identifying it or something in the config.g???
Any way here's my homeall.g
I was getting errors so i had to replace all the S(x) switches with an H(x).; homeall.g
; called to home all axes; generated by RepRapFirmware Configuration Tool on Mon Dec 24 2018 18:36:17 GMT+0200 (South Africa Standard Time)
G91 ; relative positioning
G1 Z5 F1000 H2 ; lift Z relative to current position
;G1 Z5 F1000 S2 ; lift Z relative to current position
G1 H1 X-365 Y-245 F2000 ; move quickly to X and Y axis endstops and stop there (first pass)
;G1 S1 X-365 Y-245 F2000 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 X5 Y5 F400 ; go back a few mm
G1 H1 X-6 Y-6 F500 ; move slowly to X and Y axis endstops once more (second pass)
;G1 S1 X-6 Y-6 F500 ; move slowly to X and Y axis endstops once more (second pass)
G1 Z3 F500 H2 ;LIFT Z FROM CURRENT HIEGHT
;G1 Z3 F500 S2 ;LIFT Z FROM CURRENT HIEGHT
G1 H1 Z-275 F600 ;MOVE DOWN TILL ENDSTOP TRIGGERED
;G1 S1 Z-275 F600 ;MOVE DOWN TILL ENDSTOP TRIGGERED
G1 Z2 F300 H2 ; LIFT Z FOR SECOND PROBE
;G1 Z2 F300 S2 ; LIFT Z FOR SECOND PROBE
G1 H1 Z-4 F600 ;MOVE DOWN TILL ENDSTOP TRIGGERED
;G1 S1 Z-4 F600 ;MOVE DOWN TILL ENDSTOP TRIGGERED
G90 ; absolute positioning
G92 Z-0.04 ; set Z to axis minimum (you may want to adjust this) -
@PeterA said in error upgrading:
M574 Z1 S1 P"!zstop" ; configure active-high endstop for low end on Z via pin !Zstop
you generated a config for a z endstop not a z probe.
there is no G30 in you homing script.
-
@Veti
OK so do i change that to
M574 Z1 S1 P"!zprob" ; configure active-high endstop for low end on Z via pin !
Not sure if that is even a command?? -
@PeterA said in error upgrading:
M574 Z1 S2 ; configure Z-probe endstop for low end on Z
but the homing script is more important.
generate a new one in the configurator,
load the json and change the z endstop to probe -
OK thanks Ill go give it a try
-
@Veti said in error upgrading:
M574 Z1 S2 ; configure Z-probe endstop for low end on Z
His config.g file says it's for v3.
From the v3 documentation:
The S2 option of M574 is intended for use only when axes other than Z are using the Z probe for homing. ... When using the Z probe to home Z, M574 Z0 should be used.
-
it works either way.
M574 Z1 S2
is what the configurator creates for z probe on version 3.but as i said more important is the homing script.
-
OK so done all that. Now when homing all z Just lifts up then says its homed. I can see the piezo is not triggering. Below are the changes I made in bold.
config.g
; ##### Endstops ######
;======================
M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop
M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop
M574 Z0 S2 ; configure Z-probe endstop for low end on Z
;M574 Z1 S1 P"!zstop" ; configure active-high endstop for low end on Z via pin !Zstop
; =======================
; ##### Endstops old 2.05 Firmware working Settings #####
;==============================================
;M574 X1 S0 ; Set active low end stops
;M574 Y1 S0 ; Set active low end stops
;M574 Z2 S2 ; configure Z-probe endstop for high end on Z
; =======================; ##### Z-Probe Precision Piezo #####
; ===================
M558 P5 C"^zprobe.in" H5 F450 T5000 ; set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
M557 X10:328 Y10:210 S20 ; define mesh grid
; ==============================================
; ##### Z-Probe old 2.05 Firmware working Settings #####
;==============================================
; M558 P8 R1 I1 H5 F450 T5000 ; Set Z probe type to inverted, unfiltered piezo and the dive height + speeds
; G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
; M557 X10:328 Y10:210 P5 ; Define mesh grid
; ====================================and the new homeall.g
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.2.2 on Thu Jan 21 2021 05:12:36 GMT+0200 (South Africa Standard Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-370 Y-250 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X5 Y5 F6000 ; go back a few mm
G1 H1 X-370 Y-250 F1800 ; move slowly to X and Y axis endstops once more (second pass)
G90 ; absolute positioning
G1 X10 Y10 F6000 ; go to first bed probe point and home Z
G30 ; home Z by probing the bed; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning -
So I'm not sure???
-
When using the configurator the z option for piezo remains greyed out. So i used the old settings???
-
post the output of M119
-
@Veti said in error upgrading:
it works either way.
M574 Z1 S2
is what the configurator creates for z probe on version 3.but as i said more important is the homing script.
Son of a gun. That's confusing.
Turns out, at least on 3.2 that M574 Z0 or M574 Z1 S2 or M574 Z2 S2 works.
It even worked with no M574 referencing Z at all.
Thanks.
Frederick
-
@fcwilt said in error upgrading:
It even worked with no M574 referencing Z at all.
Which makes complete sense since G30 only cares about M558 and G31. M574 is for endstops.
-
@PeterA said in error upgrading:
; ##### Z-Probe Precision Piezo #####
; ===================
M558 P5 C"^zprobe.in" H5 F450 T5000 ; set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
M557 X10:328 Y10:210 S20 ; define mesh grid
; ==============================================
; ##### Z-Probe old 2.05 Firmware working Settings #####
;==============================================
; M558 P8 R1 I1 H5 F450 T5000 ; Set Z probe type to inverted, unfiltered piezo and the dive height + speeds
; G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
; M557 X10:328 Y10:210 P5 ; Define mesh gridIn your 2.05 config for the piezo you have it inverted and P8 probe type. To do the same in 3.2 you'd add a ! to the pin name. Try this.
M558 P8 C"^!zprobe.in" H5 F450 T5000 R1
That would match your previous settings.
You should also check your config.g syntax by sending M98 P"config.g" This will report any errors that may get lost during startup.
-
Sorry guys had an internet issue. Bust testing now
-
@Phaedrux said in error upgrading:
Which makes complete sense since G30 only cares about M558 and G31. M574 is for endstops.
I agree but when homing with z probe the documentation states that for v2 M574 Z1 S2 is needed and for v3 M574 Z0 is needed.
So something is out of sync - the firmware is right and the docs wrong or vice versa.
Curious. Thanks.
Frederick
-
@Phaedrux
Thanks. Sorry I've been making so many changes following some of the other guys. Just getting seriously lost.
I tried your suggestion and now i at least get an error:
When homing the Z it says :1/21/2021, 6:44:30 PM Error: Z probe already triggered at start of probing move
Error: Homing failedI'm really getting a bit lost. Can you see any mistakes ?
Also the M98 P"config.g" reports this;
1/21/2021, 6:52:01 PM M98 P"config.g"
HTTP is enabled on port 80
FTP is disabled
TELNET is disabledSo I've changed my config.g to the following:
; ##### Endstops ######
;======================
M574 X1 S1 P"!xstop" ; configure active-high endstop for low end on X via pin !xstop
M574 Y1 S1 P"!ystop" ; configure active-high endstop for low end on Y via pin !ystop
M558 P8 C"^zprobe.in" H5 F450 T5000 R1 ; set Z probe type to switch and the dive height + speeds; ##### Z-Probe Precision Piezo #####
; ==================================
G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
M557 X10:328 Y10:210 S20 ; define mesh grid
; M557 X10:328 Y10:210 P5 ; Define mesh gridand my homeall.g looks like this
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v3.2.2 on Thu Jan 21 2021 05:12:36 GMT+0200 (South Africa Standard Time)
G91 ; relative positioning
G1 H2 Z5 F6000 ; lift Z relative to current position
G1 H1 X-370 Y-250 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X5 Y5 F6000 ; go back a few mm
G1 H1 X-370 Y-250 F1800 ; move slowly to X and Y axis endstops once more (second pass)
G90 ; absolute positioning
G1 X10 Y10 F6000 ; go to first bed probe point and home Z
G30 ; home Z by probing the bed; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z5 F100 ; lift Z relative to current position
;G90 ; absolute positioning