Design of CNC constant current source