I am going to tell you the G code and M code of CNC turning (FANUC). You can scroll down and see the entire G code and M code, it is based on CNC turning fanuc. You can also download this list in PDF, for that you have to click on the download link given below.
CNC TURNING (FANUC) G-CODE
CNC TURNING (FANUC) M-CODE
NOTE : ALL CODES ARE NOT APPLICABLE AT EVERY MACHINE