You can use the High-Speed Counter feature along with a timer function block in logic to calculate RPM. There is also a IEC function block that will calculate a running average.
More information on the HSC can be found in the HMC3000 series IO Module guide:
HMC3000 I/O Module Guide
For more information on function blocks and how to use them, please see the help files in
MAPware7000