I have following G-code to prime the nozzle before start of the print.
G28 ; home all axes G0 Z5 F5000 ; lift nozzle G0 X30; move to X30 G28 Y; home Y M420 S1; turn on bed leveling M109 S220; wait for hotend temperature G1 E20 F1800; extrude filament 20mm
The idea is to extrude a strand of filament outside of the bed and then start the print. The strand catches on the bed a tears off. So the ooze does not mess up the first layer.
The problem is that the
G1 E20 F1800 does not wait for the move to finish and the controller goes to next move immediately. This means the nozzle is going to start the first layer, while spewing filament along the way.
Is there a way to wait for the move to finish?
I have tried
M400 which seems not to help. I'm using Marlin Firmware.