Machining and manufacturing Y54A with C language

Our factory has several Y54A gear shaping machines, which have been in service for many years. It makes the knife cam often damaged, and the equipment department is tired of coping with it. Our factory has a Zhongjie factory producing CNC boring and milling machine THS5640/2, FANUC system, we decided to use the equipment to process the cam itself. The cam part drawing is as follows: