Control system for UCCNC and Mach3