Welcome! Log In Create A New Profile

Advanced

Help needed with starting Gcode

Posted by witor 
Help needed with starting Gcode
December 20, 2019 01:49PM
I would like my starting g code to home all axis, load manual bed leveling values ,extrude 10mm of filament at normal printing speed at home position to prime the nozzle, then to draw a priming line prusa I3 style. Line should be 50mm long and quite thick. After drawing the line about 2 mm retraction then move to start of print position and start printing immediately.

I would greatly appreciate if someone could help me out as I have very little understanding of how to use g code commands.

At the moment I have this:
G28 ; home all axes
G92 E0 ; zero the E-axis
G1 E30 F500 ;
M900 K0.12 ;Set K factor PLA

before print starts I just get quick jitter from the extruder with a little of plastic extruded but nowhere near 30mm.

I am totally lost with this Gcode...

Edited 1 time(s). Last edit at 12/20/2019 01:49PM by witor.
Re: Help needed with starting Gcode easy for you
December 26, 2019 01:48PM
I don't know if that is your particular printers correct commands, they look fine though.

Is the part of the sub-program that commands motion missing? In other words, on most stuff, you would have a axis call, a feed rate and distance to go to make it move. It might be G01 to start a feed rate (Gzero1) X 2.5 distance F200 for whatever federate in the correct measuring system for your machine. Give the E axis the same.

Depending on how your thing reads code, you have to present code the way your thing reads it. How much info per line, how to end a line, how to space a line, in other words, G code composition. Just like writing English, compose by the rules and G-code makes sense to your audience, your thing.

Get a list of the codes that work with your thing, find out the program format so your programs will be understood, write a line. watch it move, or not, try another, same thing again...If you care to master G code, you can easily. there are limited options, (the G and M codes) that when fed in correctly will always have the same outcome.

I work in machining and design and always say, the easy part is moving to any point, the harder part is knowing why.

Below is a splash of what one of my things needs to do what you want somewhere in there, for reference, yours would be different for the bed leveling info:


G90
M82
M106 S0
M140 S60
M190 S60
M104 S220 T0
M109 S220 T0
M115 U3.0.7 ; use the latest firmware version
G28 W ; home all axes without mesh bed leveling
G80 ; run mesh bed leveling routine
G1 Y-3.0 F1000.0 ; prepare to prime
G92 E0 ; reset extrusion distance
G1 X60.0 E9.0 F1000.0 ; priming
G1 X100.0 E12.5 F1000.0 ; priming
G92 E0
G1 E-1.5000 F1800
G1 Z0.130 F1000
; process
; layer 1, Z = 0.130
T0
; tool H0.200 W0.462
; skirt
G1 X49.362 Y60.974 F4800
G1 E0.0000 F540
G92 E0
G1 X49.393 Y60.943 E0.0017 F1400
G1 X50.290 Y60.097 E0.0490
G1 X50.323 Y60.067 E0.0508
G1 X50.430 Y59.975 E0.0562
G1 X50.465 Y59.947 E0.0579
G1 X51.445 Y59.185 E0.1056
G1 X51.483 Y59.157 E0.1074
G1 X51.603 Y59.073 E0.1130
G1 X51.643 Y59.047 E0.1149

Edited 1 time(s). Last edit at 12/26/2019 01:51PM by kengineer.
Re: Help needed with starting Gcode easy for you
December 26, 2019 05:15PM
Thank you.

I came with something like this, which seems to work quite OK:

; Filament gcode
M900 K0.28 ;Set K factor PLA
G92 E0 ; zero the E-axis
G1 E100 F500 ; extrude 20mm of filament at 800mm/min
G92 E0

G1 E-0.80000 F3000.00000
G92 E0
G1 X6 Y5 F6000.000
G1 E0.80000 F3000.00000
G1 F1200
G1 X56 Y5 E4
G92 E0
Sorry, only registered users may post in this forum.

Click here to login