In CNC Machining lot of different types of codes are used according to the need. G and M codes are very popular and frequently used codes.
G (Geometric) codes are used to guide the tool mainly in different geometrical(x,y,z) directions. These codes control the tool/turrent holding the tools
M (Machine) codes are used to operate different functions on the machine.
These codes controls various machine parts.
Thx!
Thx.