0% found this document useful (0 votes)
23 views5 pages

G Code 1

This document contains a G-code script for 3D printing, detailing commands for setting up the printer, moving the print head, and extruding material to create a series of squares and rectangles. It includes commands for homing axes, resetting the extruder, and adjusting the layer height. The script concludes with commands to turn off the extruder and bed, disable motors, and end the program.

Uploaded by

JOSHUA AYEGBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views5 pages

G Code 1

This document contains a G-code script for 3D printing, detailing commands for setting up the printer, moving the print head, and extruding material to create a series of squares and rectangles. It includes commands for homing axes, resetting the extruder, and adjusting the layer height. The script concludes with commands to turn off the extruder and bed, disable motors, and end the program.

Uploaded by

JOSHUA AYEGBA
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

G21 ; Set units to mm

G90 ; Absolute positioning

M82 ; Set extruder to absolute mode

G28 ; Home all axes

G92 E0 ; Reset extruder position

G1 F1500 X10 Y10 Z0.3 ; Move to start position

G1 F9000 X50 Y10 E5 ; Extrude while moving to new position

G1 X50 Y50 E10 ; Continue extruding

G1 X10 Y50 E15 ; Complete square perimeter

G1 X10 Y10 E20 ; Return to start

G92 E0 ; Reset extruder

G1 Z0.6 ; Raise nozzle slightly

G1 X15 Y15 F9000 ; Move to next layer start position

G1 Z0.3 ; Lower to layer height

G1 X45 Y15 E5 ; Extrude

G1 X45 Y45 E10

G1 X15 Y45 E15

G1 X15 Y15 E20

G92 E0

G1 Z0.6

G1 X20 Y20 F9000

G1 Z0.3

G1 X40 Y20 E5

G1 X40 Y40 E10

G1 X20 Y40 E15


G1 X20 Y20 E20

G92 E0

G1 Z0.6

G1 X25 Y25 F9000

G1 Z0.3

G1 X35 Y25 E5

G1 X35 Y35 E10

G1 X25 Y35 E15

G1 X25 Y25 E20

G92 E0

G1 Z0.6

G1 X30 Y30 F9000

G1 Z0.3

G1 X35 Y30 E5

G1 X35 Y35 E10

G1 X30 Y35 E15

G1 X30 Y30 E20

G92 E0

G1 Z0.6

G1 X5 Y5 F9000

G1 Z0.3

G1 X55 Y5 E5

G1 X55 Y55 E10

G1 X5 Y55 E15

G1 X5 Y5 E20
G92 E0

G1 Z0.6

G1 X12 Y12 F9000

G1 Z0.3

G1 X48 Y12 E5

G1 X48 Y48 E10

G1 X12 Y48 E15

G1 X12 Y12 E20

G92 E0

G1 Z0.6

G1 X17 Y17 F9000

G1 Z0.3

G1 X43 Y17 E5

G1 X43 Y43 E10

G1 X17 Y43 E15

G1 X17 Y17 E20

G92 E0

G1 Z0.6

G1 X22 Y22 F9000

G1 Z0.3

G1 X38 Y22 E5

G1 X38 Y38 E10

G1 X22 Y38 E15

G1 X22 Y22 E20

G92 E0
G1 Z0.6

G1 X27 Y27 F9000

G1 Z0.3

G1 X33 Y27 E5

G1 X33 Y33 E10

G1 X27 Y33 E15

G1 X27 Y27 E20

G92 E0

G1 Z0.6

G1 X10 Y60 F9000

G1 Z0.3

G1 X50 Y60 E5

G1 X50 Y100 E10

G1 X10 Y100 E15

G1 X10 Y60 E20

G92 E0

G1 Z0.6

G1 X15 Y65 F9000

G1 Z0.3

G1 X45 Y65 E5

G1 X45 Y95 E10

G1 X15 Y95 E15

G1 X15 Y65 E20

G92 E0

G1 Z0.6
G1 X20 Y70 F9000

G1 Z0.3

G1 X40 Y70 E5

G1 X40 Y90 E10

G1 X20 Y90 E15

G1 X20 Y70 E20

G92 E0

G1 Z0.6

G1 X25 Y75 F9000

G1 Z0.3

G1 X35 Y75 E5

G1 X35 Y85 E10

G1 X25 Y85 E15

G1 X25 Y75 E20

G92 E0

G1 Z0.6

M104 S0 ; Turn off extruder

M140 S0 ; Turn off bed

M84 ; Disable motors

M107 ; Turn off fan

M30 ; End of program

You might also like