Help - Search - Members - Calendar
Full Version: Calculate RPM using a prox. sensor
Forums.MrPLC.com > PLCs and Supporting Devices > Omron
smario
I have one proximity sensor which can generate 6 pulse per revision.
How can I calculate the RPM? Is PRV2 function available for sensors or only for encoders use?
Can me help someone?

My PLC is OMRON CP1L-M30DR

Thank You in advance

Mario
BITS N BYTES
Use PRV2[883].
smario
QUOTE (BITS N BYTES @ Nov 12 2009, 06:25 PM) *
Use PRV2[883].

PRV2 function work for proximity sensors?
pfort
QUOTE (smario @ Nov 14 2009, 02:30 PM) *
QUOTE (BITS N BYTES @ Nov 12 2009, 06:25 PM) *
Use PRV2[883].

PRV2 function work for proximity sensors?

Encoder or sensor, the PLC doesn't make the difference yes.gif
smario
i use PRV2 function but the speed rotation don't display a constant (sped rotation oscillating)
BITS N BYTES
Check the parameters you have entered in the C1 control word and your pulses/rev in C2.

You have not specified the max/min rpm of your 6 pulse per revolution sensor.
If it is running slow then you will get large variations in speed if you have the incorrect Pulse frequency calculation method set wrong. Third digit in C1 control word.

My guess for your application would be to set C1 to #0030 and C2 for #0006. Don't forget the '#' otherwise you will get totally screwed up data.

smile.gif
smario
QUOTE (BITS N BYTES @ Feb 1 2010, 10:41 AM) *
Check the parameters you have entered in the C1 control word and your pulses/rev in C2.

You have not specified the max/min rpm of your 6 pulse per revolution sensor.
If it is running slow then you will get large variations in speed if you have the incorrect Pulse frequency calculation method set wrong. Third digit in C1 control word.

My guess for your application would be to set C1 to #0030 and C2 for #0006. Don't forget the '#' otherwise you will get totally screwed up data.

smile.gif

for C1 i use #0000 (Standard calculation method), and for C2 #0006 but still oscillating
BITS N BYTES
Have you tried other settings for C1?
Have you configured "Built-In Input" PLC settings correctly for your Sensor Input. Should be "Use Counter [60Hz]", "Linear Mode", Software Reset", "Increment pusle input" [Don't forget to power down and power up PLC after changing them]?
What IS the RPM range of the shaft?

Other things to consider:-
Switching frequency of proximity switch. Are you operating the proximity switch outside its switching frequency [a very common mistake]?
If the RPM is slow and/or the duty cycle of the pulses is not consistent [all 6 pulses should be about the same] then you WILL se fluctuation.
In that case you will need to create an average speed over a longer sampling time to smooth out the result.

smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.