For rotational speed measurement or for high speed counting applications, mechanical switches are not suited. Firstly they can not handle the rapid switching on/off expected of them (responses faster than 10 times per second are rare), secondly the number of switching cycles can be very high which is a concern given the limited switching life of these switches and thirdly contact bounce is a major concern with the use of these switches.
Proximity switches, given their electronic construction do not suffer from these disadvantages - they can switch up to 5000 times per second, they have almost unlimited life and their 'contacts' switch cleanly without bounce. They are thus ideally suited to rotational speed measurement or for high speed counting applications.
They however need to be installed correctly to function as desired. The switching frequencies specified assume installation as per the figure below. This installation is as per the EN 50 008 standard.