Flow Rate Calculations Siemens S7

Tigger

Member
Join Date
Aug 2005
Location
Cheshire
Posts
6
Siemens S7-300 CPU315-2DP

Hi Guys

I need to accurately calculate the flow rate of a material that is passing through a totalised flow meter. At the moment I have a simple 1 second timer setup so that it calculates the difference between a snapshot DINT of the last total and the current DINT total then * 60 to give me the flow rate per minute.

This is not very stable due to the scan times of the PLC. Is there another way so that the scan times of the PLC will not affect the calculation of the flow rate, maybe by using the system time in the calculations or calling system function.

If possible please provide code examples in your replys.

Cheers
 
OB35 is the timed interrupt block and you can set how often this block is called in the h/w config. This will give you a reliable steady time base for sampling your signals.
 
Never delt with s7 300 but with s7 400 series you can go to library (standared blocks ) apply fc 105 i think its scaling block and wire there your PIW ( 4-20Ma ) from your flometer depending on your parameterization shld give you acurately the flow rate did it with our feeding system .
 

Similar Topics

Hi Experts I want to calculate the average for variable mass flow rate within specific time using s7-1200 and Load cell module Does any expert...
Replies
0
Views
2,036
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
92
One of the engineers has asked me to add code to the PLC to calculate oil flow rate based on delta pressure, using the equation below: Flow rate...
Replies
13
Views
2,780
Hello. I wanted to write the logic of the flow totalizer and the flow itself for self-education in RSLogix5000 V20.01 software. After reading the...
Replies
13
Views
7,512
can any one help with the math for converting an instantaneous value to a totalised value for Gas Consumption usage every hour. in the plant we...
Replies
5
Views
3,171
Back
Top Bottom