tach

I am stuck on something that should be simple, I am trying to display a tachometer from a prox switch 1 click per rev. I am useing a GE versamax micro 64. I have been trying to compare a count by a running clock of one minuite but this is not working correctly help please.o_O
 
RPM?

EDIT: Search the forum for "cycles per minute"...the basic math is not limited to RPM, but applies to any "cycles per unit of time" logic.

To get RPM at a fast rate, calculate it as M per R, since you get a rising edge for every R (prox switch), use that rising edge to make a copy of the accumulated timer value and then immediately reset the timer.

Your accumulated value will be the unit of time per revolution, so to get that back into RPM, divide one minute (in your PLC timer accumulator units) by it.

The very first result after starting may need to be thrown out but after that, your number will update every proximity switch pulse. Sometimes, this is too fast and precise for an HMI, so you find in those threads, discussions of filtering, averaging, and sampling for display reasons.

I am not familiar with your PLC, so I am being very general. I hope the concept gets through.



Paul
 
Setup input one as HSC type A. Put 600 in the time base parameter and %AI2 will hold the number rpm in 1/10's i.e. if the value in AI2 is 1234 the RPM = 123.4
Or put 6000 in the time base to read RPM without the decimal.

The time base parameter is in millisecond and the HSC fills %AI0002 with the number of pulses seen in your designated number of milliseconds.
Doesn't get much simpler. :)
 

Similar Topics

OK I've spent too much time on the desk and I'm struggling trying to make this work in the real world. Its possible there is a problem in the...
10
Replies
897
Views
Hello I am at a loss here. Original problem on the drive was a PG open fault so we replaced the tach on the motor thinking it had gone bad. Sense...
1
Replies
416
Views
I'm trying to use a copy of my (new) customer's Siemens Step 7 project files to further my knowledge of Step 7. I archived his project files today...
10
Replies
4,731
Views
Long shot, but has anyone bought and/or used any of the tachs from AD...
7
Replies
2,677
Views
Hi, I have a problem in Factory Talk SE. I have a numeric input variable which is supposed to be in millisecond (ms) and I have the tag in PLC in...
1
Replies
2,007
Views
Top