The paper discusses a way to minimize the machine time to debug a control program. We propose performing most of the debugging on a 3D copy of a CNC metal-cutting machine. We herein present an example of how a compressor disk turning control program could be created and verified by a CTX alpha 500 virtual machine using Sinumerik 840D CNC system.