Welcome! Log In Create A New Profile

Advanced

Cura End code problem

Posted by sidhabo 
Cura End code problem
April 15, 2018 02:16PM
I want to control in what order X and Y zero home is done in the end code.
First I had
G28 X0 Y0;
So I changed to what is below thinking I would force Y0 home happen before X0 home.
It still do X0 home first. So I tried revers in end code doing G28 X0 first then G28 Y0 on next row.
No change .....
Seem like the changes I do have no effect.
Just to be sure I exit from Cura after doing changes and then reopened.
Any idea on this ?

To make a change I go to Settings-Printer-Manage printers and then
Machine Settings
for the only printer I have defined.


M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300  ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+20 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
G28 Y0 ;move X/Y to min endstops, so the head is out of the way
G28 X0 ;
M84 ;steppers off
G90 ;absolute positioning


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Re: Cura End code problem
April 16, 2018 02:28AM
Isn't it G28 Y, not Y0?
Why do you home the printer and not just send G1 Y0 F###?
Re: Cura End code problem
April 16, 2018 02:41AM
Quote
o_lampe
Isn't it G28 Y, not Y0?
Why do you home the printer and not just send G1 Y0 F###?

This end code was working for my previous Cura version 15.04.6 (upgraded to 3.2.1 ).
Think it was like a default one there. I will try alternate as you suggested.
Just that I have a feeling what I change is not having any effect at all .....
If I slice to file it all look good though. What I alter will go into file.


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Re: Cura End code problem
April 16, 2018 03:29AM
Just confirmed by commenting out the X home command in end code
Still doing the X home
Seems like any change I do in end code have no effect at all in this 3.2.1 Cura version .....

I use Gcode flavor Marlin in printer setup. Could that be an issue.
Not sure if Marlin (Volumetric) or RepRap flavor might be a better choice.

Edited 1 time(s). Last edit at 04/16/2018 03:34AM by sidhabo.


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Re: Cura End code problem
April 16, 2018 03:42AM
It's not Curas fault, but Marlins. It only reads G28 and ignores whats written behind. I'm sure, it just homed the printer twice, always beginning with X-axis.
Re: Cura End code problem
April 16, 2018 05:22AM
Quote
o_lampe
It's not Curas fault, but Marlins. It only reads G28 and ignores whats written behind. I'm sure, it just homed the printer twice, always beginning with X-axis.

Now I totally deleted all G28 code in Dura machine setup end code. Still doing it.
So it's like some default code is active. Disregarding all I do in machine setup end code.
Seem to be same code I hade in Dura 15.04.6 version. I did import of that profile into my 3.2.1 Dura version.
Maybe that is the reason ??


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Re: Cura End code problem
April 18, 2018 08:00AM
Just looking for issues.
Your in relative positioning - maybee you can't home in relative.
You can always load the Gcode in a text editor (notepad etc) and scroll to the end and check the actual code in the file.
Re: Cura End code problem
April 18, 2018 09:03AM
Quote
MCcarman
Just looking for issues.
Your in relative positioning - maybee you can't home in relative.
You can always load the Gcode in a text editor (notepad etc) and scroll to the end and check the actual code in the file.

Thanks for feedback.
I'm pretty sure my problem is the endcode is not active at all:
a) removing the home commands does not prevent home being executed
b) I did try G1 X20 Y20 command after setting absolute pos, no affect at all

Yet more strange .... when I dump to file I can see all changes I do in end code


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Re: Cura End code problem
April 18, 2018 04:12PM
I found a solution for my problem. Instead of edit end code in Cura GUI I edit file

C:\Program Files\Ultimaker Cura 3.2\resources\definitions\prusa_i3_xl.def.json

It is entry "machine_end_gcode":, "default_value":
that is used as end code at all times. Regardless of what you edit in the Cura GUI yawning smiley

Seem like the B word to me .....

Start code is working to edit in GUI smiling smiley

Edited 1 time(s). Last edit at 04/18/2018 04:15PM by sidhabo.


Prusa i3 Reworked, Delivered March 28 2014, RAMPS 1.4
Göteborg, Sweden
Sorry, only registered users may post in this forum.

Click here to login