Skip to main content

G-code example


The following G-code is used to make the head of the CNC machine follow the shown path in the figure


O1000
T1 M6
G0 G90 G40 G21 G17 G94 G80
G54 X-75 Y-25 S500 M3 (Start Point)
G43 Z100 H1
Z5
G1 Z-20 F100
X-50 M8 (Position 1)
Y0 (Position 2)
X0 Y50 (Position 3)
X50 Y0 (Position 4)
X0 Y-50 (Position 5)
X-50 Y0 (Position 6)
Y25 (Position 7)
X-75 (Position 8)
G0 Z100
M30

Comments

Popular posts from this blog

Results

After testing the machine, we were able to engrave with very high quality on wood, plastics and leather. We were also able to test the machine engraving on metals and it gave a remarkable result.

Design modification

In the first five weeks of the semester the design team worked on scouting the local market for the required materials and parts which were selected in the ME491 final design. Unfortunately, not all the parts were found so the design team ordered those part from international market. Some of the raw materials were found in the local market but with a different specification where the design was based on using plywood thicknesses of 20 and 25 millimeters but the only available thickness in the market was 18 millimeters so the design was modified to use those raw materials. Based on the recommendation of the advisors and the examiners the design team added a cover to the design to increase its safety and storage flexibility.

Assembling

In this step the plywood pieces and the ready parts were assembled together according to the design drawing. L angles, nails and bolts were used to assemble the machine. This step was done in the  college of engineering workshop.