What's wrong with my script
-
I have a macro file with the script below. When I run it I expect a slow extruder movement over 24 seconds but instead the extruder moves fast for a second or less and the two messages are printed almost at the same time.
What am I missing?
Board: Duet 3 Mini 5+ (Mini5plus)
Firmware: RepRapFirmware for Duet 3 Mini 5+ 3.4.0beta5 (2021-10-12)M302 P1 ; allow cold extrusion. M83 ; set extruder to relative mode echo "Start" G1 E60 F150 ; Extrude 60mm at 2.5mm/sec echo "Done" M82 ; set extruder to abs mode
-
@zapta Try putting M400 after the G1 command.
-
Thanks. M400 after G1 didn't make a change.
M302 P1 ; allow cold extrusion. M83 ; set extruder to relative mode echo "Start" G1 E60 F150 ; Extrude 60mm at 2.5mm/sec M400 echo "Done" M82 ; set extruder to abs mode
-
@zapta, I think inserting a wait before the done message - P400 (or a G4 P0) doing nothing makes sense because your description is that the extrude is happening too fast, not that the message is printed before the extrude completes.
Normally, the F parameter is used to describe the speed of movement between two points, while extruding E (mm) of filament along the path. I'm not sure how F works if there is only an E parameter. Based on your description of what you saw, maybe F with only E is interpreted as mm/sec, not mm/min. If that were the case, your 60mm of filament would extrude in 2.5seconds.
-
As a test insert a G1 Xaaa Ybbb command to move to some start point.
Then modify your existing G1 to include Xccc Yddd where ccc and ddd will move to some end point.
See how that changes the extruder behavior.
Frederick
-
Thank you everybody for the suggestion. The script works now. The trick was to separate the speed and the extrusion to two G1 commands. Not sure if this is intended or a bug in the version I am using.
M302 P1 ; allow cold extrusion. M83 ; set extruder to relative mode echo "Start" G1 F150 ; Set extrusion speed to 2.5mm/sec G1 E60 ; Extrude 60mm. M400 ; Wait for motion to end. echo "Done" M82 ; set extruder to abs mode