How to detect no interrupt? CNC router rpm PID control