Use Increasemental Encoder to Calculate Flowrate Question

Nan

Member
Join Date
Jul 2015
Location
louisville
Posts
126
Hi Everyone,

I am new to srevo control, and hope to you guys can help me.

I have a Siemens s120 controler and drive, drive a cylinder up and down to supply flow rate.

It is a simple speed control with give servo the RPM speed command, I mapped the encoder vaule back to the AB plc, the value is from 0 to big number (32 bit)
I have pusles per litter information to display the actual flowrate, right now the question is that how can I monnitor the pluses change rate acrrutly?

The genetic moudle RPI for s120 controller is 20ms, I guess I can record the pluses vaule until it changes then compare them, the different will be the pluses during the 20ms, right? If this is wrong, is there a better way to do this?

Thank you!
 
To get running averages of a system, you have to specify a sample time τ, get the quantity δ in the given τ, and for dynamic systems, get the value using mathematics for t=0->τ

Set δ = 0 in the beginning of measurement.
So, for t in (0,τ] rate = δ /τ,

for n=1->inf, rate(n) = δ(n)/{τ(n)-t(n-1)}

So, your sample times would basically be based on timesteps indexed by n. Delta(n) would be your current pulses, delta(n-1) would be previously recorded pulses, and t(n)-t(n-1) would be your timestep length. Make that using function blocks for bonus points.

Regards,
-PreLC
 

Similar Topics

I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation...
Replies
7
Views
238
Hi everyone, This is my first time posting, so please forgive any omissions or mistakes. I am attempting to control the velocity of a stepper...
Replies
18
Views
990
Dears, i am trying to change the series of encoder from A to B, but the program do not has this option (Rslogix5000, 20.06 the old encoder was...
Replies
2
Views
208
Hi all, I am working with an incremental encoder (ABZ signals, 360 ppr (so 1440 counts per rev)) to replace the existing "manual" encoder wheel I...
Replies
51
Views
2,598
Hi all, I am implementing an incremental encoder sensor (ABZ) to replace the existing "manual" encoder wheel I have in my device. This is a 360...
Replies
0
Views
164
Back
Top Bottom