A CNC router is controlled by computer numerical control (CNC) software that directs the machine's movements and operations. This software interprets design files created in CAD (Computer-Aided Design) software and generates machine-readable instructions, typically in G-code format.