I have a query, I have a Modbus TCP I/O module with a fast count input, and I want to measure the speed of a motor with that fast signal given by a magnetic pickup.

The count is stored in the holding register "DIN1 Pulse Counter 32 Bit unsigned ABCD"

If we want to calculate the speed from script, can we use the multivibrator to do a period of 1 second and calculate the RPM with mathematical operations? Or is there a way that you know more efficient and effective?

Can you help us perform this speed calculation that is important for the project?