<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Format_G-Code_impressi%C3%B3_3D</id>
	<title>Format G-Code impressió 3D - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Format_G-Code_impressi%C3%B3_3D"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Format_G-Code_impressi%C3%B3_3D&amp;action=history"/>
	<updated>2026-08-30T10:12:52Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Format_G-Code_impressi%C3%B3_3D&amp;diff=254232&amp;oldid=prev</id>
		<title>Joan a 18:41, 3 març 2016</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Format_G-Code_impressi%C3%B3_3D&amp;diff=254232&amp;oldid=prev"/>
		<updated>2016-03-03T18:41:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
=Introducció=&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
G1 F900 X111.989 Y93.688 E199.15337&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
extrusió. F900 és la velocitat. Quan no extrïm, la velocitat és més ràpida. Per ex:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
G0 F7800 X115.870 Y90.936&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Hem de tenir en compte si estic fent G90 (valors absoluts) o G91 (valors relatius)&lt;br /&gt;
&lt;br /&gt;
Referència de codis G-code:&lt;br /&gt;
*http://reprap.org/wiki/G-code/es&lt;br /&gt;
&lt;br /&gt;
La diferència entre G0 i G1:&lt;br /&gt;
*G0 basically moves all axes at max speed, without making sure that all axes start and finish at the same time&lt;br /&gt;
*G1 means coordinated move, where it moves all the axes so they start and finish at the same time (drawing a straight line between points)&lt;br /&gt;
Per tant, té sentit que quan estem imprimint fem G1, i quan senzillament estem movent el capçal fem G0 a màxima velocitat.&lt;br /&gt;
&lt;br /&gt;
Quan extrueixo (imprimeixo), a mida que es van movent els eixos també hi ha extrusió del fil. Uns pocs càlculs a partir del fitxer de referència:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
G1 X108.133 Y108.297 E0.29782&lt;br /&gt;
G1 X110.717 Y108.701 E0.34131&lt;br /&gt;
&lt;br /&gt;
extrusió&lt;br /&gt;
0.34131-0.29782 = 0,04349 mm&lt;br /&gt;
long = sqrt(deltax^2 + deltay^2) = sqrt((110.717-108.133)^2 + (108.701-108.297)^2)= sqrt(6,677056+0,163216) = 2,615 mm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per tant, la velocitat d'extrusió del meu perfil seria: mm extr / mm carrera = 0,04349 mm / 2,615 mm = 0,0166 (és la ràtio entre mm d'extrusió i mm de carrera).&lt;br /&gt;
&lt;br /&gt;
Per tant, si vull moure'm 5cm extruint, he d'extruir: 50*0,0166 = 0,83mm&lt;br /&gt;
=Exemple=&lt;br /&gt;
'''prova_espiral_quadrat.gcode''':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
; -- START GCODE --&lt;br /&gt;
;Sliced at: Wed 02-03-2016 18:57:13&lt;br /&gt;
;Basic settings: Layer height: 0.05 Walls: 1.2 Fill: 20&lt;br /&gt;
;Print time: &lt;br /&gt;
;Filament used: &lt;br /&gt;
;Filament cost: None&lt;br /&gt;
;M190 S70 ;Uncomment to add your own bed temperature line&lt;br /&gt;
M109 S220 ;Uncomment to add your own temperature line&lt;br /&gt;
G21        ;metric values&lt;br /&gt;
G90        ;absolute positioning&lt;br /&gt;
M107       ;start with the fan off&lt;br /&gt;
G28 X0 Y0  ;move X/Y to min endstops&lt;br /&gt;
G28 Z0     ;move Z to min endstops&lt;br /&gt;
G1 Z15.0 F1200 ;move the platform down 15mm&lt;br /&gt;
G92 E0                  ;zero the extruded length&lt;br /&gt;
G1 F200 E20              ;extrude 20mm of feed stock&lt;br /&gt;
G92 E0                  ;zero the extruded length again&lt;br /&gt;
G1 F7800&lt;br /&gt;
;Put printing message on LCD screen&lt;br /&gt;
;M117 Imprimir espiral...&lt;br /&gt;
; -- end of START GCODE --&lt;br /&gt;
&lt;br /&gt;
M106 S0 ;fan off -&amp;gt; d'aquesta manera s'aguanta la temperatura de 220C&lt;br /&gt;
G0 F7800 X100.000 Y100.000 Z0.100	;em moc a una posició cap al mig&lt;br /&gt;
;vaig a fer un quadrat en espiral&lt;br /&gt;
G1 F1200 X100.000 Y150.000 E0.83&lt;br /&gt;
G1 X150.000 Y150.000 E0.83&lt;br /&gt;
G1 X150.000 Y100.000 E0.83&lt;br /&gt;
G1 X98.000 Y100.000 E0.83 ;no torno a la mateixa posició, sinó 2mm menys (el fil són 1,75mm)&lt;br /&gt;
&lt;br /&gt;
G1 X98.000 Y148.000 E0.83 ;ara el costat del quadrat no és de 50mm, sinó de 48mm&lt;br /&gt;
G1 X148.000 Y148.000 E0.83&lt;br /&gt;
G1 X148.000 Y98.000 E0.83&lt;br /&gt;
G1 X96.000 Y98.000 E0.83&lt;br /&gt;
&lt;br /&gt;
G1 X96.000 Y146.000 E0.83 ;ara el costat del quadrat no és de 50mm, sinó de 48mm&lt;br /&gt;
G1 X146.000 Y146.000 E0.83&lt;br /&gt;
G1 X146.000 Y96.000 E0.83&lt;br /&gt;
G1 X94.000 Y96.000 E0.83&lt;br /&gt;
&lt;br /&gt;
G1 X94.000 Y144.000 E0.83 ;ara el costat del quadrat no és de 50mm, sinó de 48mm&lt;br /&gt;
G1 X144.000 Y144.000 E0.83&lt;br /&gt;
G1 X146.000 Y94.000 E0.83&lt;br /&gt;
G1 X92.000 Y94.000 E0.83&lt;br /&gt;
&lt;br /&gt;
G1 X92.000 Y142.000 E0.83 ;ara el costat del quadrat no és de 50mm, sinó de 48mm&lt;br /&gt;
G1 X142.000 Y142.000 E0.83&lt;br /&gt;
G1 X142.000 Y92.000 E0.83&lt;br /&gt;
G1 X90.000 Y92.000 E0.83&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; -- END GCODE --&lt;br /&gt;
M104 S0                     ;extruder heater off&lt;br /&gt;
M140 S0                     ;heated bed heater off (if you have it)&lt;br /&gt;
G91                                    ;relative positioning&lt;br /&gt;
G1 E-20 F300                            ;retract the filament a bit before lifting the nozzle, to release some of the pressure&lt;br /&gt;
G1 Z+80 F7800 ;move Z up&lt;br /&gt;
G90                     ;absolute positioning&lt;br /&gt;
G1 X0 Y180 F7800 ;move Z up a bit and retract filament even more the way&lt;br /&gt;
M84                     ;steppers off&lt;br /&gt;
; -- end of END GCODE --&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Autor}}, març 2016&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>