Flow Meter On CompactLogix

fifty60

Member
Join Date
May 2017
Location
Kentucky
Posts
12
I am using a flow meter with a CompactLogix L24 processor. I believe that my flow is too fast, and I am missing some counts.

For example, a count of 1410 pulses one run results in 300cc of fluid. But a count of 1410 on another run results to 290 cc of fluid.

I am trying to figure out a good way to approach if my flow meter is matched well with my PLC. Any advice on how to do this will help?

For example, my RPI is set to 20.0 ms for the embedded counter I am using, but the update time in the counter configuration is 10 ms. Is this a mismatch that I should be concerned with? I'm just not sure what I should be looking at to prevent the mismatches I am seeing..
 
I will take a look at those links, thank you. I flow meter is sending around 1400 pulses per second. The scans for my continuous task are coming in around 3 ms. For 3ms, I cannot exceed 333 pulses per second right? 1/.003 is 333.333. Is that the correct way to look at it?
 
Yes this is the calculation on how long the input must be on in order for the PLC to read it. It is also how long the output needs to be off in order for the PLC to acknowledge that it is also off.
The duty cycle is 50%. Amount of time on vs off.
Scan times in the PLC can change depending on a number of factors. Some PLCs will allow you to fix the PLC scan to a value.
I would always divide this by 2 to get the rate of the input to the PLC. So I would use the value of 166 pulses per second.

Regards,
 
The L24 PLC has an embedded hi speed counter. Does this change anything? Right now my flow is over 1000 pulses a second and it works pretty good, but still has errors. It seems like reducing this down to 170 pulses per second is a pretty big reduction in flow.

Is there something in the embedded hi speed counter that lets me flow faster than the scan time limits?
 
Thanks Garry, those posts do help clarify the HSC. However, I am still unsure if the HSC allows me to defy the scan time of the PLC. Using the embedded HSC on the L24, would I be able to read 1000 pulses per second on a PLC that has a scan rate of 0.003 seconds?
 
I will take a look at those links, thank you. I flow meter is sending around 1400 pulses per second. The scans for my continuous task are coming in around 3 ms. For 3ms, I cannot exceed 333 pulses per second right? 1/.003 is 333.333. Is that the correct way to look at it?

Not really. Look at the Task Properties for your continuous task. There are two sets of numbers displayed:
Scan Times (Elapsed Time)
Interval Times (Elapsed Time Between Triggers)

Scan times is how much processor time was used to execute the program.

Interval times is the real time that elapsed between one start of the program execution and the next.

The difference is from the activity going on at the same time as the continuous task (the overhead time slice and any higher priority tasks).

It is possible to have a program that executes in 100ms, but only executes once per second.

The continuous task is not the best place for tracking fast inputs. You may want to look at "event tasks" or high speed counters.
 
Very helpful information, thank you. I am trying to set up the filter values in the input configuration. My options are 0.2mS, 0.7mS, and 7ms. The signal i am sampling is coming in at around 1500 pulses per second.

Looking at the HSC manual from AB for the 1769-L24ER-QBFC1B embedded module, I see that this is a low pass filter. Meaning, it lets in frequencies below a certain threshold.

I understand that much, but after reading the manual a couple times i still do not know what to set the filter to. I would like to simply block out any frequencies above 2000Hz. Any help for setting this would be greately appreciated.s
 

Similar Topics

Hi, The hardware is: Click Plc model # CO-O1DD1-O HMI model # S3ML-R magnetic-inductive flow meter model # FMM100-1001. I will set the flow meter...
Replies
4
Views
130
Dear All, I need a sample PLC program to count the output pulse of a mass flow meter so that a specific amount of mass (for example 100gm)can be...
Replies
2
Views
146
Morning Guys, I am installing a turbine flow meter with a pulse output to measure flow on a compactlogix 5069 -L306ER through a 1734-VHSC24...
Replies
3
Views
1,591
I need modbus communication tool for Yokogawa Rotamass Flow meter? can any one help me.
Replies
1
Views
979
Hey everyone, I was on a customer's site on friday where they have a large bioreactor that they bought secondhand from a previous user. System is...
Replies
22
Views
4,439
Back
Top Bottom