The part program is a sequence of instruction that describe the work that is to be done to a part. Typically these instructions are generated in Computer-aided manufacturing software and are then fed into the computer numerical control (CNC) software on the machines, such as drills, lathes, mills, grinders, routers, that are performing work on the part. The CNC computer then translates the set of instructions into a standardized format of G-code and M-code commands and follow the instructions in the order they are written left to right or top to bottom.
When multiple repetitive operations are needed on a large number of parts canned cycles can be used to reduce the number of operation blocks in a part program. In some cases a part might need to go between multiple machines and have multiple operations performed on it to generate the geometry that is need.
Example of the order of operations seen in a typical program