11/11/2011 7:05 AM | |
Joined: 11/11/2011 Last visit: 1/27/2024 Posts: 7 Rating: (1) |
Hello, You can write code inOB35, the interruput organization per 100ms. |
11/11/2011 8:12 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Dear Martins_Eng, Check this link for a solution in STL. Best regards, Hamid Hosseini |
11/12/2011 2:50 PM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Dear Martins_Eng, If you have flow transmitter and scaled the physical value to the MD10, as input of totalizer function,So you can implement your totalizer as following: [code]// Called in OB35 CALL "Totalizer" , DB100 VALUE :=MD10 INTERVAL:=T#1M CYCLE :=T#100MS COM_RST :=M20.0 TOTAL :=MD30[/code] TOTAL={{(VALUE)*CYCLE}/INTERVAL}+TOTAL In case of this example: TOTAL={{(MD10)*0.1}/60.0}+TOTAL Download the codes from here and some extra information here. Best regards, Hamid Hosseini |
11/18/2011 3:56 PM | |
Joined: 10/10/2010 Last visit: 9/14/2024 Posts: 307 Rating: (15) |
thank you |
This contribution was helpful to1 thankful Users |
Follow us on