State the function of „G‟ Codes and „M‟ codes with any two examples.
„G‟ Codes ( Preparatory Functions)
The preparatory function instructs the machine tool to get prepared for the
operation to follow,
the preparatory function is represented by two digits preceded by letter „G‟
e.g. G02, G04, G97, G96, etc.
(i) G00 – Rapid Positioning,
(ii) G01- Linear Interpolation ,
(iii)G90 – Absolute Programming etc.
M- codes (Miscellaneous function)
The Miscellaneous function word is used to specify certain Miscellaneous
function or auxiliary functions which do not relate to the dimensional movements
of the machine.
The Miscellaneous function is represented by two digits preceded by letter „M‟
e.g. M00, M05, M08, M30 etc.
i) M02 - Program end
ii) M06 - Tool change
iii) M08 – Coolant ON