I have what I think to be kind of a complicated ladder logic to build. What I am wanting to do is this:
2 inputs, measured spindle speed (1 pulse per revolution), and PWM speed output by Mach2
3 outputs, spindle speed increase, decrease, and hold for speed change.
I am trying to figure out how to measure frequency using ladder logic. If I can figure this out I can determine the actual frequency of the spindle, compare it to the signal output by Mach2, then adjust accordingly.
I have high speed counters, but those have a finite limit, and I really need more of an instantaneous measure of frequency.
Any thoughts?
Joe