QUOTE (Muhammad Daniyal @ Sep 26 2009, 03:43 PM)

QUOTE (Inntele @ Sep 26 2009, 10:59 AM)

Dear Muhammad,
1) About updates value of flowrate . You did mistake. I wrote, the flowrate is calculated every 6-sec (the timer is with 0,1s resolution).
2) You asked us to give you a sample of program (an idea) and not an operating program. If you want to get the operating program you should inform us about:
- maximum and minimum flowrate per minute;
- maximum scan time of your current program;
- address of input to which your flowmeter is connected.
Because the real program code will depends on value of these parameters. And this information is "starting" only.
Regards
Its great regards,
i want to just make sure the unit that you have been mentioned with comments (D2 = Liquid Flowrate (L/min) in the program. otherwise its an idea that can be modified according to my requirement.
Thank you for your great Help and the giving the idea.
Hi,
Several comments...
In my sample the flowrate, which calculated in D2,is measured in deciliters per minute. You can scale it with possibilities of HMI or SCADA.
The test of programs usually is begun from test of PLC program only (separately from HMI or SCADA program).
The way of calculation of flowrate seriously depends on a pulse quantity per scan. According to this parameter is need to choose:
- type of counter (general or high-speed)
- calculation period.
If it is necessary to use high-speed counters (or interrupt routine) appear some restrictions on the address of input, the programming code will another absolutely.
The correct choice of flowmeter's resolution (according to accuracy, which is real necessary) is most important task to get a good programming decision.
If you need help, I could do it.
Good luck.