This work is focused on the programming of a numerical method. It is divided into three parts. The first part is concerned with the development of CNC machines, coordinates system and what the coordinates systems consist of. It is also concerned with the way how the path of numerical control machines is operated. The second part of the work deals with NC programming of CNC machines. There is analysed the development of programming, structure of the program, what a program like this incorporates. This part also focuses on the adjustment of the paths of a machine in particular operations (turning, milling) and at the end there are analysed individual functions of a program, the so-called G-codes. In the third part, there is carried out the practical part of the assignment, in which are presented 2 programs by the means of G-codes for two components. The first component for the operations of turning, and the second of milling.