Newbie; printer makes mistake on specific Z-move
 
Notifications
Clear all

Newbie; printer makes mistake on specific Z-move  

  RSS
HugoW
(@hugow)
Active Member
Newbie; printer makes mistake on specific Z-move

Hi,

bit of a criptic title, let met explain.

A bit of background; I've been printing a lot the last four years on my homebuilt CoreXY machine with an MKS SBase V1.3 controlboard. First with a lot of trouble, since Marlin 2.X it's plain sailing. I have countless empty spools to prove it (I should clean up...) printing PLA for kids stuff and PETG for RC car stuff. I used an illegal copy of another slices and it works, but it lacks certain settings per layer-height and I am in the process of banning all illegal software from my computer. So, here I am now. I installed PrusaSlicer this morning, copied a lot of setting (manually, to check) and generated my first g-code.

Now for the issue. This is my Start G-code:
G1 Z5.0 F300 ; Move the platform down 5mm
G28 X0 Y0 ; Home XY
G1 X50 Y50 F6000 ; Move to safe Z-home location
G28 Z0 ; Home Z
G29 ; Auto bed leveling
G92 E0 ; Set E back to zero to begin print
G1 X20 Y20G1 Z0.05 ; move close to bed to avoid oozing
M104 S225 T0 ; set hotend temp
M109 S225 T0 ; wait for hotend temp to be reached
G91 ; Set movement incremental
G01 E3 F220 ; Extrude 3mm
G90 ; Set movements absolute

I uploaded to Octoprint and started the print. It goes to the temperatures in the first layer settings of the Slicer, it does the right moves and does the G29 bed leveling perfectly. So far, so good. It moves to X20 Y 20 and then in used to go down to Z0.05 as per the G-code. But now, it makes the Z-motor go 'beep' instead of going down. Next, it continues to set hotend temp, extrude (prime) and the print starts in mid-air. And I don't understand why it doesn't do down to Z0.05. It tries, but fails. It made all the previous Z-motions correctly.

Please advise. Despite a lot of kilograms printed and having built the machine myself, I have very little knowlegde of it's inner workings.
Cheers,

Hugo

Napsal : 25/02/2022 7:52 am
HugoW
(@hugow)
Active Member
Topic starter answered:
RE:

And another question. In my filament settings, I have 170 degrees for the first layer, 225 for the others for the tool. The bed is 70 for both. The 170 I need for the plastic still on the nozzle to be plyable enough not to interfere with Z-probing, without oozing. In the above quotes G-code, I raise the temp to 225 before printing really starts. But in the generated G-code, it doesn't do the 170 degrees anywhere. It does the bed temperature:

M201 X9000 Y9000 Z500 E10000 ; sets maximum accelerations, mm/sec^2
M203 X500 Y500 Z12 E120 ; sets maximum feedrates, mm/sec
M204 P1500 R1500 T1500 ; sets acceleration (P, T) and retract acceleration (R), mm/sec^2
M205 X10.00 Y10.00 Z0.20 E2.50 ; sets the jerk limits, mm/sec
M205 S0 T0 ; sets the minimum extruding and travel feed rate, mm/sec
M107
M190 S70 ; set bed temperature and wait for it to be reached
;TYPE:Custom
And then my custom G-code starts. It doesn't give a command to heat the tool to 170 anywhere in the G-code. Why not? It goes M104 S225 just before starting the second layer.

Cheers,

Hugo

Napsal : 25/02/2022 8:37 am
3DPrintDemon
(@3dprintdemon)
Active Member
RE:

Here you go bud. Heres my Start G-code, it basically does what you want it to do.

Just be careful as my purge lines are quite close to the edge of the print area, also Im using Unified bed levelling.

It also stops the string of filament across the bed when its up to temp between drawing the purge lines & moving into the print area.

 

G28 ; Home all axesM220

S100 ; reset feed rate to 100 percent

M221 S100 ; reset flow rate to 100 percent

M104 S165 ; set extruder temp

M140 S[first_layer_bed_temperature] ; set bed temp

M190 S[first_layer_bed_temperature] ; wait for bed temp

G29 A ; Unified bed-level (BL-Touch)

G29 L0 ; Load Mesh Slot 0

G29 J3 ; Probe 9 points to check mesh

G1 Z5 F5000 ; lift nozzle

G1 Y0 F9001 ; go to front edge of the bed

G92 E0 ; Reset Extruder

G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed

G1 X0.1 Y10 Z1.0 F5000.0 ; Move to start position

M104 S[first_layer_temperature] ; set extruder temp

M109 S[first_layer_temperature] ; wait for extruder temp

G1 Z0.25 F800 ; Move lower

G4 S2 ; wait 2 seconds

G1 X0.1 Y200 Z0.3 F1500.0 E15 ; Draw the first line

G1 X0.4 Y200 Z0.3 F5000.0 ; Move to side a little

G1 X0.4 Y10 Z0.3 F1500.0 E30 ; Draw the second line

G4 S2 ; wait 02 seconds

G1 Z0.6 F3000 ; Lift A BIT

G92 E0.0 ; Reset Extruder

G1 Z1.0 F500 ; Move Z Axis up little to prevent scratching of Heat Bed

 

This post was modified před 3 years 4 times by 3DPrintDemon
Napsal : 25/02/2022 1:57 pm
3DPrintDemon
(@3dprintdemon)
Active Member
RE: Newbie; printer makes mistake on specific Z-move

sorry first two lines are supposed to read...

G28 ; Home all axes

M220 S100 ; reset feed rate to 100 percent

 

It won't let me edit now

Napsal : 25/02/2022 2:06 pm
Neophyl
(@neophyl)
Illustrious Member
RE:

Just read your gcode.  Y20G1 - that doesn't look like a valid gcode now does it.  Have you perhaps missed a space or a return in there ?  G1 X20 Y20 is fine and it looks like the next section is supposed to be on another line as its also G1 Z0.05

So either G1 X20 Y20 Z0.05

or
G1 X20 Y20
G1 Z0.05

 

Also the best way to debug any issue is to save a ZIPPED up project file from PS.  File>Save project as to generate the .3mf.  Zip it up so the forum will accept the file and attach.  A Project lets us see all the settings, and all your start gcode etc. 

Napsal : 25/02/2022 2:22 pm
HugoW
(@hugow)
Active Member
Topic starter answered:
RE: Newbie; printer makes mistake on specific Z-move

Thanks for the replies.

@FLYN INDUSTRIES; I don't understand what you mean. I think that was the default g-code you mention, I wrote the g-code I use with the previous slicer over it.

@Neophyl; Thanks for the suggestion on the ZIP, I will try that tomorrow if I have not found a fix by then. I indeed missed an 'enter' between the two moves, when I copied the code from the slicer and pasted it here, it came without enters. So I put those in, and missed this one. It is in the real g-code, in the slicer.

Cheers,

Hugo

Napsal : 25/02/2022 3:36 pm
HugoW
(@hugow)
Active Member
Topic starter answered:
RE: Newbie; printer makes mistake on specific Z-move

Here is the ZIP file. I have tried some different settings but I cannot find the hotend heating to 170 degrees anywhere. And I cannot understand why.

Cheers,

Hugo

Napsal : 25/02/2022 6:47 pm
HugoW
(@hugow)
Active Member
Topic starter answered:
RE: Newbie; printer makes mistake on specific Z-move

Hmmmm... Zipfile doesn't load. Do I need a minimum amount of posts to be allowed to upload a file?

Napsal : 25/02/2022 8:19 pm
HugoW
(@hugow)
Active Member
Topic starter answered:
RE: Newbie; printer makes mistake on specific Z-move

Thanks, I see you updated your post. Is it a must to define the bed temp in the custom g-code like that? I presume it is, as I haven't done that and it doesn't code the temp anywhere.

Posted by: @flyn-industries

[cut]

M140 S[first_layer_bed_temperature] ; set bed temp

M190 S[first_layer_bed_temperature] ; wait for bed temp

[cut]

M104 S[first_layer_temperature] ; set extruder temp

M109 S[first_layer_temperature] ; wait for extruder temp

[cut]

 

 

Napsal : 25/02/2022 9:56 pm
Share: