Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start / End Code #1402

Closed
4noxx opened this issue Mar 16, 2019 · 4 comments
Closed

Start / End Code #1402

4noxx opened this issue Mar 16, 2019 · 4 comments

Comments

@4noxx
Copy link

4noxx commented Mar 16, 2019

hello,

at the moment i use my marlin start and end code. but i ve problem.
#1 double home before printing
#2 problem after printing. at first the printer goes "home" and after this, the printer (nozzle) run in my printing part.

have anyone a start and end script or can check my script?

start script:
https://pastebin.com/raw/TAPziJ6D

end-script:
https://pastebin.com/raw/CrYnSYU6

printer.cfg
https://pastebin.com/raw/aygRewbm

thx

@klipper-gitissuebot
Copy link

Hi @noxx2015,

It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions).

Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days.

For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md

The log can still be attached to this ticket - just add a comment and attach the log to that comment.

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

@AxMod3DPrint
Copy link
Contributor

AxMod3DPrint commented Mar 16, 2019

If you want to home X&Y Separately from Z, you need to home them individually IE:

G28X
G28Y
G28Z

G28XY or G28 X0 Y0 will not work.

So your Start Script should be:

G21	;Einheiten in Millimeter (metisches System)
G90	;Absolute Positionierung
M82 ;set extruder to absolute mode
G28 X ;Fahre X auf Endschalter
G28 Y  ;Fahre X auf Endschalter
G28 Z0	;Fahre Z auf Endschalter
G29	;Auto Bed Levelling
G1 Z10.0 F9000	;Fahre auf Z=10mm mit 9000mm/min
G4 S3	;3 Sekunden Pause
G92 E0	;Extruderwert Reset
G1 F9000
M117 Drucke...

And your end Script should be:

M104 S0	;Exruder aus
M140 S0	;Heizbett aus
G1 E-1 F300	;Filament zurückziehen
G28 X ;Home X
G28 Y ; Home Y
M84	;Motoren aus
M107	;Lüfter aus

@klipper-gitissuebot
Copy link

It appears the Klipper log file was not provided.
I'm closing this now, sorry. Feel free to attach the log to this ticket sometime in the future, or create a new issue once you can provide the log file.

@jakep82
Copy link
Collaborator

jakep82 commented Mar 25, 2019

@AxMod3DPrint What you've posted here will actually cause this printer to home every axis 3 times during the start script, and twice during the end script. This issue is the homing override.

@noxx2015 The default setting for a homing override is to run it for all axes. That means running G28 X0 will actually home all 3 axes. The solution to your problem is to simply use a single G28 in your start script, and use G1 X0 Y0 in your end script instead of G28 X0 Y0.

For more info read about the homing override at this link.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants
@4noxx @AxMod3DPrint @jakep82 @klipper-gitissuebot and others