Dear Bro,
Use Windows XP SP 2 instead of other operating system for your CNC machine.
This will fix your problem.
Thanks.