Computer numerical control (CNC) is a method for automating control of machine tools through the use of software embedded in a microcomputer attached to the tool. It is commonly used in manufacturing for machining metal and plastic parts.