Abstract This study presents a method and module, which for scheme a grinding path of cam profile according to NURBS method, and we show that, can be to connect with the FANUC controller, and make it feasible to control the grinding path of cam profile.