I just finished my first cnc and spent several weeks reading The cnc workbook by Nanfara,Uccello,Murphy in an attempt to learn g-codes. Thought i understood them but i was wrong.Question is im trying to cut a very simple part only using the x and y axis. I am trying to cut a part that looks like a comb. That is, the cutter starts at point a,then the y axis moves back toward the column in the + direction cutting into material, then back out, then to the right,the x+ direction, then forward again and out.Basically cutting forward,back,over in the x,forward,back,over,forward,back,over,etc. The workbook states i have to put a - or + before each axis like so-
%
g90 gg20 (absolute and inch programming)
y-0.972 (moving forward)
y+0.972(moving back)
x+0.297(moving to the right)
y-0.906(moving forward)
y+0.906(moving back)
x+0.297(moving to the right)
y-0.873(forward)
y+0.873(back)
etc, forward,back,right,forward,back,right.
I havent seen any + or - in any g-code samples anywhere except for the z-axis,and i am wondering how does the controller know to make the table move right or left, forward or back? can someone show me a brief sample of how i should be writing this? thanks for any input anyone can give.