I get the milieu within piece of equipment, but necessitate to cram how to programs cnc lathe &milling .?
Please check for G- code and M- codes for these machine languages.
you can also look into for them on the net. Alternatively you can get them contained by any CAM book.
Basically programming these machines is not much difficult task at all. The programming is simply simple set of instruction which tells the machine in the region of where to go and which tool to select etc.
You can draw from the basics from CAM books.
There are also some tutorials and practice softwares available for this. like CNC tutor etc.
All the best.!