7/14/2010 12:57 PM | |
Posts: 68 Rating:
|
Hey all. Is there a way to make sum of x registers in DB ? (Without adding 1 at a time)
|
7/15/2010 7:38 AM | |
Posts: 68 Rating:
|
HeyTEBANCH. I have 60 registers in one DB in data type real, with those registers I need to add all of them and then to make an average. the registers are made on the FIFOprinciple and are updated every 1 Min. I need to be able to make the sum every Min and then to calculate me average. Here is the STL I made so far : OPN #DATA_BASE A #enable JCN _002 _003: NOP 0 L 1 T #Average.Position_Value L #First_reading T #Average.Pointr T #ptr L #PV T DBD [#ptr] _002: NOP 0 A #time_base JCN _001 L 1 L #Average.Position_Value +I T #Average.Position_Value L P#4.0 L #Average.Pointr +D T #Average.Pointr T #ptr L #PV T DBD [#ptr] L #Reading_Sum L #Average.Position_Value ==D S #Average.DB_Full_memory JC _003 _001: NOP 0 Thanks for you're Help, Woop_ass. |
Follow us on