Page 132 - CNC Robotics
P. 132
Chapter 5 / Software Setup and Driver Test
Save this file as Triangle-gc.txt, I include the gc in the name to indica te
that it is a G-code file but you could just change the extension of the
file to .gc from .txt if you like and you wo n' t have to use the "All Files"
filter when looking for the file wi th Kea rn (see Figure 5.13) .
, ,
'3 . 'h - • . !'u ",
t-!tt"''''''_1'O-O>t_ _ "", Figure 5.13
" Triangle file open in
I ::::~~"t~$Oo>r.r-=-"
,~ Kearn.
f- '-'!T=iJ'!!:J_••
'- I I ._~
'- . .. _ 17
f-- ,~ - ~rs--~
1_~ !Plol
, ..
, f-
" i _\_-- - ~
'r- , 0 \ !Ii '00"
NOO5 GiXl ~ (W yooo' ((l)
)
" ! , NOO6 GOOXlX\O " 2Y1)l m
N(JJI GOOZIJ 5
+=9 NOXlI GlII )O)J1 ~ Y1lOH"
IIOO'GOOZl
z " ~n~ii:::
- " " t -l --l iI >I»I 11)YllIl m
,..
llOI
.'""
- " , /. , : ir.oa>O,D;l(W>1lJl(W
-
.~
'- /. / I
,,- -: --- --
f-
1'.1
_" lI>1t ~ ~
Z-T"". DV_ TO<lo O~f ""'" I
1i'£I"1b.1 " I ~.!!:J '** * * *'1slsl, ':3""'3''''3.til
_. .""Ic..., , ~~'JJ,.>I
,
Circle Test
Use th e following code to write a G-code fi le that w ill plot a circle.
NOOl G90
N002 M03
N003 GOO ZOOl .OOO
N004 GOO X1.882 Y2.5
N005 GOO ZOOO.500
N006 GOl Xl .882 Y2.5 ZO.5
N007 G02 X4.118 Y2.5 1003.000 J002.500
N008 Gal X4.118 Y2.5 ZO.5
N009 G02 Xl .882 Y2.5 1003.000 J002.500
NOl O GOO ZOOl.OOO
NOll GOO XOOO.OOO YOOO.OOO
123