stiandahl
Posts: 14
Joined: Sun Feb 23, 2020 2:14 pm

End Script / GCode

Hi everyone!

I'm trying to get my printer to move the z axis up a bit and move the bed all the way to the front after print is done.
Now, I'm wondering how to do that. I know I can edit the ending script, but I don't know what to change it too.
I think I have to use G90 absolute positioning and use the G28 move command, but I don't understand what parameters to use?

I have Crazy3Dprint CZ-300 printer. with 300x300x300mm print volume. What is the value for the print bed in it's most forward position?

If anyone can help me with this, I would greatly appreciate it!

Thanks!
Stian

P.S.
After some reading, could this be the way to do it?

M104 S0 ; turn off nozzle temperature
M140 S0; turn off bed temp
M105 S0; send tempt to host
G28 X0 ; home X axis
G91 ;relative positioning
G1 E-5 F300 ;retract the filament a bit to release some of the pressure
G1 Y300 F5000; Present part
G90 ;absolute positioning
M84 ; disable motors
airscapes
Posts: 403
Joined: Tue Mar 06, 2018 10:35 am
Location: Philadelphia PA Area

Re: End Script / GCode

it depends on where 0 is.. when you home x y and z should be at 0, so 300 is the other way..
stiandahl
Posts: 14
Joined: Sun Feb 23, 2020 2:14 pm

Re: End Script / GCode

Hi. And thanks for reply.

When the print is done, I want the bed to move as far away from 0 as possible.
0 is all the way back, and I want it to move all the way forward.
I'm just afraid that I tell the printer to move further than it is capable of, so something breaks. There is no end stop switches in that direction.

Thanks
DrD
Posts: 74
Joined: Sun Dec 25, 2022 8:24 pm
Location: Canada

Re: End Script / GCode

I like to "push" my print bed forward for easy part removal at the end of the print.

My GCODE for this is:

Code: Select all

G1 X0 Y235 F2400 ; position for easy part removal

;perform retract prior to finishing print
G92 E0 ; reset extrusion distance
G1 E-5 F800

M106 S0 ; turn off cooling fan
M104 S0 ; turn off extruder
M140 S0 ; turn off bed
M84 ; disable motors
Hope this helps,

D.
You don't know what you don't know until you know (my philosophy for continued learning).
airscapes
Posts: 403
Joined: Tue Mar 06, 2018 10:35 am
Location: Philadelphia PA Area

Re: End Script / GCode

This is the part of my end script that does just that, when mine is done. My bed a 250 so move to 249, If you go too far it will just make a loud clicking noise that will scare you but does no harm to anything.

G90 ; absolute mode
G1 Y249 ; Move bed out
M84 ; disable motors
stiandahl
Posts: 14
Joined: Sun Feb 23, 2020 2:14 pm

Re: End Script / GCode

Thanks guys!
That helps a lot! :D

Return to “General Discussion and Tips”