Speed and current control integrated into nc control system