CNC machines with automation