A part program controls a CNC machine tool by providing coded instructions that determine tool movement and auxiliary functions like spindle rotation and coolant. It is composed of letters, numbers, and symbols arranged in functional blocks. Common codes include G-codes for specifying movements like linear and circular interpolation, M-codes for functions like coolant control, and word address coding with line numbers and coordinates to define positions.