Stack Overflow error when running G32 from gcode print file
-
Hello...
I've worked my way through most Z probe/FSR issues, and it all works, until, I try to add G32 to the start code in my slicer. When that code is run, it hits the G32 line then gives me an "insufficient axes homed", then a bunch of Stack Overfows. It then continues with the rest of the code, which goes terribly wrong...
The calibration works when I hit the button or run G32, and there is a G28 in the bed file, all work, but when G32 is run from the Gcode, no go.
Here are some relevant files...
Bed.g
; bed.g
; called to perform automatic delta calibration via G32
;
; generated by RepRapFirmware Configuration Tool on Wed Aug 22 2018 14:14:40 GMT-0700 (Pacific Daylight Time)
M561 ; clear any bed transform
;G28 ; home all towers
; bed.g file for RepRapFirmware, generated by Escher3D calculator
; 16 points, 6 factors, probing radius: 100, probe offset (0, 0)
G28
G30 P0 X0.00 Y100.00 Z-99999 H0
G30 P1 X50.00 Y86.60 Z-99999 H0
G30 P2 X86.60 Y50.00 Z-99999 H0
G30 P3 X100.00 Y0.00 Z-99999 H0
G30 P4 X86.60 Y-50.00 Z-99999 H0
G30 P5 X50.00 Y-86.60 Z-99999 H0
G30 P6 X0.00 Y-100.00 Z-99999 H0
G30 P7 X-50.00 Y-86.60 Z-99999 H0
G30 P8 X-86.60 Y-50.00 Z-99999 H0
G30 P9 X-100.00 Y-0.00 Z-99999 H0
G30 P10 X-86.60 Y50.00 Z-99999 H0
G30 P11 X-50.00 Y86.60 Z-99999 H0
G30 P12 X0.00 Y50.00 Z-99999 H0
G30 P13 X43.30 Y-25.00 Z-99999 H0
G30 P14 X-43.30 Y-25.00 Z-99999 H0
G30 P15 X0 Y0 Z-99999 S6Homedelta.g
; homedelta.g
; called to home all towers on a delta printer
;
; generated by RepRapFirmware Configuration Tool on Wed Aug 22 2018 14:14:41 GMT-0700 (Pacific Daylight Time)
G91 ; relative positioning
; Slow homing has been configured. Change F300 to F3000 below when your configuration is working
G1 S1 X380 Y380 Z400 F2400 ; move all towers to the high end stopping at the endstops (first pass)
G1 X-5 Y-5 Z-5 F3000 S2 ; go down a few mm
;Slow homing has been configured. Change F300 to F1500 below when your configuration is working
G1 S1 X10 Y10 Z10 F900 ; move all towers up once more (second pass)
;G1 Z-5 F6000 ; move down a few mm so that the nozzle can be centred
G90 ; absolute positioning
;G1 X0 Y0 F6000 ; move X+Y to the centrand the start of the Gcode...
G90 ;set to absolute
M82 ;Extruder to absolute
M106 S255
G4 P500
M106 S0
;Starting Gcode for DuetG28 ;home towers
G1 Z360 F1800 ;drop to 360M140 S60 ;start bed
M190 S60 ;wait for bed to reach temp
G4 S180 ;wait for 3 min
M104 S205 T0 ;start ext
M109 S205 T0 ;wait for ext to reach tempM83 ;Extruder to relative
G1 E-3 F200 ;retract 3mm
M82 ;Extruder to absoluteG4 S30 ;wait extra time to equalizetemp
;Starting Beeps for Printer
M120 S4 P10
G4 P40
M120 S4 P10
G4 P40
M120 S4 P10
G4 P40
M120 S4 P10
G4 P40
M120 S4 P10
G4 P1000
;countdown
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S4 P10
G4 P1000
M120 S3 P50
G4 P2000
;End beeps
;Do Not Use G28G32 ;Calibrate Printer
G92 E0
G1 E-3.0000 F3000
G1 Z0.300 F4500
; process Process1
; layer 1, Z = 0.200
T0
; tool H0.200 W0.720
; skirt
G1 X20.750 Y-10.741 F9000
G1 Z0.200 F4500
G1 E0.0000 F900
G92 E0
G1 X20.750 Y12.874 E1.3820 F1050
G1 X20.686 Y13.460 E1.4165
G1 X20.416 Y14.677 E1.4895
G1 X20.226 Y15.236 E1.5240
...Ideas? Code was generated in Simplify3D.
Thanks
-David
-
It was the M120 beep commands I had in there to warn me to remove any ooze before the print starts. On the Rambo board, M120 is a beep, not so on this one, it is something else entirely. When I redid the beeps with M300's, all works.
First test print running now. Damn that thing is quiet. Well, the motion anyway. The fans not so much. I just need to find quieter 30mm fans. The printer is 3 feet behind my head, and I need to keep looking over to make sure the thing is still moving.
-David
-
Sadly the Marlin developers are not good citizens of the RepRap community, because they ignore the common repository for G- and M-code allocations for repraps at https://reprap.org/wiki/G-code. In this case they ignored that fact that Adrian Bowyer had already allocated M120 for push/pop when they decided to use M120 for a completely different purpose. Anyway, I'm glad you identified the problem.
Lots of us find we need quieter fans after upgrading to Duets! The Noctua fans are very quiet, but sadly not yet available in 24V versions.
-
Nor are they available in 30mm (or 25). I have a couple of the 40's, I may try to design a duct for them, although there may be something floating out there already.
Thanks
-David
-
Actually reprap G-code doesn't show M120 as beep in any firmare. Marlin is shown as M300, just like RRF.
-
@kamacuras said in Stack Overflow error when running G32 from gcode print file:
Nor are they available in 30mm (or 25). I have a couple of the 40's, I may try to design a duct for them, although there may be something floating out there already.
Thanks
-David
This is the best 30mm fan I've been able to find. It's worth the cost as far as I'm concerned.
https://www.digikey.ca/product-detail/en/2757778
It's quiet, moves enough air and has a high mean time between failure.
-
@phaedrux said in Stack Overflow error when running G32 from gcode print file:
2757778
That link doesn't work unfortunately
-
@dougal1957 odd. Here's the part number to search for. Perhaps because it's the Canadian site?
Sunon fan MC30101V1-000U-A99
FAN AXIAL 30X10MM 12VDC WIRE -
@phaedrux said in Stack Overflow error when running G32 from gcode print file:
Sunon fan
Found it under this link.
-
And for those in EU you can get them here (Prob other places as well but I got mine here)