What happens at the end of a print job?
-
I have this line in my slicer 'Ending Script'...
G28 X10 Y250 ; Move print head out of the way
...so that the print head will be at the back of the enclosure after the print is finished. Otherwise the gantry is in the way of print removal.
For some reason this line only works if I cancel the print job. If the print finishes normally the print head parks itself at Home (front left). Where is the code that tells the printer to do this? What does the printer run at the end of each print job?
-
@brs that gcode is incorrect.
G28
means home all axes.
If you want to move to a specific point, it would beG1 X10 Y250
-
@jay_s_uk said in What happens at the end of a print job?:
@brs that gcode is incorrect.
G28
means home all axes.
If you want to move to a specific point, it would beG1 X10 Y250
Ha. Well that was easy.
Thanks Jay! -
This is my macro "PrintEnd"
;PrintEnd
G91 ; set to use relative coordinates
G1 Z5 E-2 F3000 ; retract extruder 2mm and move bed down 5 mm
G90 ; Set absolute mode
G1 Y228 X118 F3000 ; Park position
M104 S120 ; Set current tool temperature to 120C
M140 S0 R0 ; Set bed to standby
M106 S0 ; turn fan off
M290 R0 S0 ; clear baby stepping
M400 ; Wait for moves to complete
M291 P"Print Completed " T5 ; Display messageIn S3D - scripts - Ending Script I have the following entry:-
M98 P"0:/macros/PrintEnd"
Hope that helps
-
@appjaws said in What happens at the end of a print job?:
Thnx, I might use some of that. Copied it to my scripts and commented it out for later use.
Now if you could give me one more line (M150) to make my DotStar lights flash that would be the cat's meow.
-
@brs that can't be done with one M150, it has to be done with a series of on-off commands, and with a G4 time delay in betwen
-
@exerqtor
I knew that and, wasn't really serious when I posted the part about M150. Problem is, there is no loop feature (that I know of) in G code so that a light can be made to blink until the operator comes and notices. Just one of those little things that would be icing on the cake but not really needed. -
@brs You can create a loop with conditional gcode? It's not just as simple as to flick a few switches in a plugin (or whatever) to set it up though, as of now atleast. Def. hope the implemitation / support for LED neopixels etc. get better with RRF down the road.
-
@brs said in What happens at the end of a print job?:
@exerqtor
I knew that and, wasn't really serious when I posted the part about M150. Problem is, there is no loop feature (that I know of) in G code so that a light can be made to blink until the operator comes and notices. Just one of those little things that would be icing on the cake but not really needed.Yes there is a loop facility. https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands