You can measure the time between each pulse. It takes 3 rungs of logic.
Rung 1. Use your input to one shot an OTE.
Rung 2. XIC of OTE Move Timer.ACC into a Storage DINT. Then Divide 60000 by Storage DINT and place in a Display DINT.
Rung 3. XIO of OTE Run Timer.
This will give you a Real Time RPM in your Display DINT.
edit: As long as your input is on for 2 scan cycles of the PLC then you will not miss any RPM values.
Rung 1. Use your input to one shot an OTE.
Rung 2. XIC of OTE Move Timer.ACC into a Storage DINT. Then Divide 60000 by Storage DINT and place in a Display DINT.
Rung 3. XIO of OTE Run Timer.
This will give you a Real Time RPM in your Display DINT.
edit: As long as your input is on for 2 scan cycles of the PLC then you will not miss any RPM values.
Last edited: