Forum

Notifications
Clear all

Print Failing after running G28 start code


rsadler
(@rsadler)
Active Member
Joined: 6 months ago
Posts: 7
Topic starter  

After getting the factory wiring issues straight on my BLTouch figured out it appears I've got that part of the install straightened out, except when I try to print. I never used a start gcode before because I was only printing files from thingiverse from my SD card and everything was working fine. Now that I have the BLTouch I'm having trouble printing. I reduced the start code to only g28 to make elimination of that section easier. I preheat the bed and nozzle before starting, then the G28 homes, and the display shows "Printing" and a couple of seconds later it switched to "Stopped" I had it hooked up to Pronterface so I could see more details of the actions, and all it said was BLTouch error. print failed. Use M999 to reset and try again. I'm guessing it's a firmware issue because the start code is only one line. I've looked through what little I know of the firmware and don't see anything obvious. I've attached them if anyone could take a look and see if there's something in the compile i did that might be causing it, i'd really appreciate it.

/Configuration.h

Configuration_adv.h


Quote
Print3D
(@print3d)
Member Admin
Joined: 2 years ago
Posts: 67
 

Hello @rsadler

You're start code should NOT be a single line. You have to have a proper start code in order to start printing properly. G28 is home axis, you should be able to send this command via the terminal in Pronterface. Then you should be able to run a G29 to do auto-level to test it. Below is an example of a start code you would need to use. I have one I use to purge out my extruder before printing, it is below this one.

 

        G28 ;Home
	M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
	M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
	M117 Auto bed-level GO!
	G29 ; Auto bed-level (BL-Touch)
	M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
	M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
	G92 E0 ; Reset Extruder
	G1 Z15.0 F6000 ;Move the platform down 15mm

 

 

Here is my personal one which also is setup for G29. Startup code here:

M117 Print Starting...
M75 ; Start Print Timer and Engage Fil Sensor if USB Printing
M84 E ; Disable E Motor for probe accuracy on direct drive systems
M117 Antiblob retract...
G92 E0 ; Reset Extruder distance to 0
G1 E-2 ; Retracts filament to prevent blobs during probing
G92 E0 ; Reset Extruder distance to 0
M117 Homing All...
G28 ; home all axes
M117 Homing Z Probe...
G28 Z ; home z again
M117 Generating mesh...
G29; auto bed leveling
M117 Heaters Recovering...
G4 S10; wait for heaters to recover
M420 Z0; Z fade
M900 K0.29 LA

M117 Purging extruder...
G92 E0     ; reset extruder
G1 Z1.0 F3000    ; move z up little to prevent scratching of surface
G1 X0.1 Y20 Z0.3 F5000.0  ; move to start-line position
G1 X0.1 Y100.0 Z0.3 F500.0 E15  ; draw 1st line
G1 X0.4 Y100.0 Z0.3 F5000.0  ; move to side a little
G1 X0.4 Y20 Z0.3 F500.0 E30  ; draw 2nd line
G92 E0     ; reset extruder
G1 Z1.0 F3000    ; move z up little to prevent scratching of surface

M117 Printing.....

 

Ending Code here:

G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning

G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
M140 S0 ;Turn-off bed

M84 X Y E ;Disable all steppers but Z

 

Try these and let me know what happens, we can move forward from there.

This post was modified 5 months ago by Print3D

Business IT Solutions - https://bizhostnc.com
Plastic Process Engineering


ReplyQuote
rsadler
(@rsadler)
Active Member
Joined: 6 months ago
Posts: 7
Topic starter  

@print3d I tried your start code, and it appears the problem with the BLTouch error starts at the end of the G28. I ran it in Pronterface to see exactly what happens and I get the error as soon as the g28 finishes. I'm wondering it has something to do with my Z axis and BLTouch. When I unplugged the Z Axis on the printer the extruder wouldn't lower only raise so I plugged it back in and it moves in the right directions. The mother board I'm using is a SKR E3 Mini V2 and the BLTouch is 3.1 On that version motherboard the BLTouch plug has all 5 wires combined in one plug, where on other versions it has a three wire plug for the BLTouch and the wires for the Z axis from the BLTouch has a seperate two wire plug with it's own plug in spot, but I've read about instances where users had to plug those two wires into the motherboards default plug for the printers Z axis which is usually unplugged. I'm wondering I need to try to seperate the BLTouch Z axis wires from the 5 wire plug and find a way to plug those into the motherboards Z axis plug from the printer?


ReplyQuote
rsadler
(@rsadler)
Active Member
Joined: 6 months ago
Posts: 7
Topic starter  

I managed to figure it out, decided to try moving the Z-axis wires from the BLTouch plug on the motherboard and plugged them into where the printers Z-axis wires plug in and that solved the problem. No more errors and the print continues now instead of shutting down after the G29 command. 


Print3D liked
ReplyQuote
Print3D
(@print3d)
Member Admin
Joined: 2 years ago
Posts: 67
 

@rsadler

That would be the next suggestion for anyone having BLTouch issues. Move the plug to the Z - endstop.

Business IT Solutions - https://bizhostnc.com
Plastic Process Engineering


ReplyQuote
Share: