Thanks, but the problem is not with z axis. It prints the right height, but it starts printing too far off the left of the board as you're facing it (that means the x axis is starting negative numbers right?). How do we fix that?
GregValiant 1,344
Sorry. I misinterpreted "off the bed".
Open the Gcode file. Right near the beginning will be a line ";MINX" and one for ";MINY". If either of them is negative then that's the problem.
In Cura click on the name of your printer. Choose Manage Printers and then Machine Settings. On the left there is a box "Origin at Center". Make sure that is de-selected. Most printers have the origin at the left front corner. Delta printers have the origin at center.
The Home Offsets in the printer, coupled with the Bed Size in Cura also determine where a print will be on the bed. But first make sure Origin at Center is not checked and then slice something. You don't have to print it, just check the MINX and MINY to insure it will print in the positive octant.
- 1
- 2 weeks later...
My MINX and MINY is negative. That is my problem. Do I just delete the negatives or change the numbers too? Also, when I try to edit the gcode it doesn't change anything. Thanks!
GregValiant 1,344
The normal X=0, Y=0 is the left from corner. Delta printers use "Origin at Center", but essentially no other printers use it, so make sure it's turned off in the Machine Settings in Cura.
You cannot just replace the negative signs in a gcode file to fix it. Consider that if an extrusion went from X-100 to X+100 and you removed the negative sign, instead of an extrusion 200mm long it would be 0mm long.
You didn't mention the printer, but if you absolutely gotta haveta print that particular gcode file you can change the Home Offsets by adding a line to the beginning of the gcode file:
M206 X115 Y115
Where the "115"'s are 1/2 the X and 1/2 the Y of the build plate size. You would also need to add a line to the end of the gcode - M206 X(original X home offset) and Y(original Y home offset) to reset the numbers or it might be off for the next print (powering the printer off and then on will reset it also).
Edited by GregValiant
- 1
We tried this and it didnt make any difference. Here is the file. I have an anycubic chiron. (X400 Y400 Z450) Thank you for your help
GregValiant 1,344
Did you re-slice that and make a new Gcode file?
The MinX and MinY show as positive numbers in the file heading but that isn't true. There are negative values throughout the gcode file. MinX is listed as 34.8 but in the lines of gcode it is -34.8. MinY is shown as 18.8 but it's really -18.8
These are some lines I picked out of the gcode. All these points are negative numbers and are off the build plate.
G1 X-34.6 Y-3.986 E5.6557
G1 X-34.564 Y-4.992 E5.73605
G1 X-34.554 Y-5.127 E5.74686
G1 X-34.452 Y-6.044 E5.82051
That is what would be expected if "Origin At Center" was ticked in the Machine Settings. It's wrong. You can open the Gcode file in Cura and look at it in the preview (but you cannot change it). The center of the model is in the left front corner and 3/4 of it is in negative areas. If you have definitely UN-CHECKED "Origin At Center" when you sliced that model and generated the Gcode then you may need to re-install Cura. What is happening is incorrect.
- 2 weeks later...
Thank you so much! I reinstalled Cura to 4.9 and it prints dead center now. I will leave you updates on the other part. Thaks!
- 2 years later...
Hi,
I was reading through this closed thread and verified I do not have the "Origin At Center" and am not seeing any negative values in my Gcode file.
I have sliced 2 different STL files and both of them print off the bed. I'm using an Anycubic Kobra 2 printer that I got yesterday and was able to run a few test prints that printed right in the center successfully.
Can someone assist please? I've attached one of the files for reference.
Thank you!
GregValiant 1,344
Here is the gcode in Cura with a Kobra as the active printer. The gcode reader is a separate program from the slicing engine so it shows a true and accurate representation of the gcode file and there it is in the middle of the build plate.
There are two build plates to deal with. The real one on the printer and the virtual one in Cura. They have to match or things can get wonky.
Measure your build plate and subtract 5mm from the width and 5mm from the depth. In Cura - Click on Settings, Printers, Manage Printers and then on Machine Settings. The settings "X width" and "Y depth" should be pretty close to what you measured. They are probably a bit less than your calculated numbers but that isn't a problem.
Auto-Home your printer and then raise the Z a couple of mm's.
Move the nozzle to X = 1/2 of the X(width) listed in Cura and Y = 1/2 of the Y(depth) listed in Cura.
Is the nozzle at the midpoint of the bed?
Edited by GregValiant
Recommended Posts
GregValiant 1,344
Open the gcode file in a text editor like Notepad. Go down to "Layer:0" and see what the "Z" is. It should be at your "Initial Layer Height". It should be noted just above or below Layer:0 line.
If it isn't your Initial Layer Height, then maybe you have a Z-offset in Cura? Was the model located on the bed or above it?
If that Z in the gcode is at the Initial Layer Height, then are your Home Offsets correct? Is the bed in the correct Z relation to the nozzle? Getting the Z to zero is part of the leveling process. If you have an ABL maybe the Z-offset there is incorrect.
Edited by GregValiantLink to post
Share on other sites