Depending on a fault its not hard to do, you can go as far as removing the drives actual platters and putting them into a different drive, soon as you can actually read it you can simply copy it perfectly to another matching drive. Theres std programmes - software out there to do this, its done all day every day. Boots fine, then struggles - then nothing is a common sign of either bearings failing or simply a electrical board fault. The companies that do this all day everyday have vast libraries of donor drives to swap bits too - from. Depending on the drive too there's some known hacks like heating them slightly to free seized bearings by getting the oil film to reform or running them on a slightly higher voltage etc.
Key thing is don't fuck with it, all the data will almost certainly still be on the drive platters and not corrupted at this point, hence get it to one of the experienced recovery places and things will go just fine. If you need it fast explain this, good chance you can have a copied working replacement back with you pretty dang quickly. Size of a typical cnc's memory is not very big at all hence assuming there's no damage to the platters - data and there probably is not with this kinda failure recovery is easy.