RSLogix5000_Totalizer FBD for flow transmitter

snehavikas14

Member
Join Date
Jun 2019
Location
hartford
Posts
17
hi,
so i m very new to plc programming.Below is my requirement

I have to create a program folder for totalizer with individual FBD routine for each meter (~100).these routines shall be configured with TOT instruction to provide a totalised value for that meter.

I dont know what input shall i give and to which pin.

pls pls pls help
 
Welcome to the Forum!

While I don't use FBD, it would be a helpful start if you could tell us:
1. Which version of RSLogix5000 you're using. Some features may vary per version.
2. What type signal your meters are providing. A 4-20mA flow rate input will require different programming than a digital 1 pulse/gallon input.

HTH
 
Last edited:
thank you soo much for your reply.

to answer ur question
1.version19
2.4-20ma flow rate,to be specific for totalizing natural gas we have fox thermal FT4A flow transmitter

please suggest how can i implement this as i have never done this and have no idea about it
 
Welcome to the forum!


What have you tried?

Also, there is the Help within RSLogix5000.


Good luck with your project.
 
I recommend you put your totalizer logic in a periodic task. Read the online help for totalizers, it's not bad.
Have you already configured your 100 AI's for the flow meters? Do you know the scaling, SCFM? SCFH?
How often (if ever) will they be reset?
 
Last edited:
i have configured the flow meters...just dont know how to configure the totalizer like what parameters and all ....i have instrument list but as i am doing it for first time i have not done scalling etc...pls help

i am also reading the online help as well but nothing is working as of now
 
Most flow meters have a 4-20ma signal that gives you flow rate and also a pulse output i.e. 1 litre per pulse. to accurately get the total from a flow is not very reliable (if I have read your post right). It depends on your resolution for example using pulse output you might need a high speed input to catch the pulses, if the flow rate was quite high then you could program the flow meter to give a pulse every 10 litres thus reducing the speed of the pulses and add 10 to the totalizer variable every pulse.
 
i came to the calibration range is from 0-420 scfm...now i am not sure about periodic task but i can definately change it later...my concern is that configuring a totalizer block with required parametrs and giving an input pulse from analog input is sufficient for configuring a FBD ,since i just need the totalized values?

i would appreciate your response
 
can u tell me if i have an analog input what output parameter i can use to configure pulse....i think that is the only huddle i have and then would give that input to the totalizer FBD and use the totalised value output .

Most flow meters have a 4-20ma signal that gives you flow rate and also a pulse output i.e. 1 litre per pulse. to accurately get the total from a flow is not very reliable (if I have read your post right). It depends on your resolution for example using pulse output you might need a high speed input to catch the pulses, if the flow rate was quite high then you could program the flow meter to give a pulse every 10 litres thus reducing the speed of the pulses and add 10 to the totalizer variable every pulse.
 
can u tell me if i have an analog input what output parameter i can use to configure pulse....
Yes, THIS is the crux of the problem. As parky mentioned earlier, using the pulsed signal directly from the meter is the easiest/simplest method. You will need to dig into the documentation for that meter to determine if a pulsed output is available and how to program/wire the signal. You will also want to make sure there is adequate time for the PLC to see the pulse as it transitions between on/off so that ALL pulses are counted.

If you must use the flow rate signal, then you will need to add programming in the Logix to generate that pulse internally. Even though there meter pulse examples in this and other forums, I STRONGLY suggest you figure out on paper the steps to accomplish this BEFORE diving into programming. That step is where you learn fundamental skills that will make your job as a controls engineer/programmer MUCH less stressful forevermore!

Let's break this down: You need to create a pulse for a certain volume (1 scf, 100 scf, etc.) but you are only given a flow rate (scfm).
Step 1 is to covert into a volume. You need to know the scan time between calculations in order to do this conversion - that's why a periodic task was advised earlier.
Step 2 is to add the converted volume to an accumulated volume value, then create a pulse once the accumulated volume reaches a certain value.
Step 3 As the pulse is created, the accumulated volume needs to decrease by the certain value specified above and keep counting. The pulse bit is what goes into your totalizer input.

Hopefully this is enough to get you started. Hey, we've all had that feeling of being overwhelmed and facing impending doom. Working things out on paper first has helped me as well as countless others.

If you really are crunched for time, you may need outside help as suggested above. Whether you're in Hartford, CT or some other Hartford, it's always a good idea to develop a relationship with your local distributor.
 
Here is a link to the unit
https://www.foxthermal.com/products/pdf/ft4a/ft4a-datasheet.pdf

It has pulse output that appears to be configurable, this should give you what you want without the need to use analogues, however it is normal to include the flow rate for real time monitoring.
you could use the output pulse to a digital input on the PLC to increment a counter, or on a one shot from the input add a value to a long integer, however at some point you may need to reset this when it goes to over flow or you could use an array of words each 0-999 and when word 0 gets to 999 add 1 to next word and reset word 0 and so on i.e. word 0 0-999 (units) word 1 0-999(thousands) Word 2 0-999 (millions), that way you can have a count into many millions and if required display this on an HMI or SCADA.
I do not have the licences installed on this pc for Rockwell but see the ladder code attached. Explanation: the input X0 is programmed as a one shot so only true for one scan, if Word D100 is less than 1000 then increment the word
compare the word with 999 and if equal to or greater then add one to D101, reset word D100, same goes for D101 & D102

So D100, D101, D102 could have a value of 999,999,999
There are many ways this can be done and could be in a function block parameterised with the input, counter or words for values etc. so you could call the FB as many times as flow meters.
I have just noticed that you state you could have 100 meters(if I read it right), the cost of 100+ analogues would be horrendous digital is the way to go.

Counter.png
 

Similar Topics

Hi! So my problem is a little funky, I had Studio 5000 v 24 and 30 installed, but forgot to install RSLogix (which I cannot go without). Is there...
Replies
2
Views
112
So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
Hello everyone, I have an RSLogix5000 project which is running live in the factory but I need to make some changes to the logic. I want to test...
Replies
0
Views
1,120
Good Morning Everyone, I'm looking to use the GSV instruction to get I/O fault codes for my project so I know if there's a comms issue in my E/IP...
Replies
5
Views
866
The machine is running production. When trying to go online with the laptop the whole machine looses communication and faults out. Drives, HMI...
Replies
13
Views
1,931
Back
Top Bottom