(2)| 1/7/2024 12:50 PM | |
|
Joined: 12/20/2023 Last visit: 2/12/2025 Posts: 2 Rating:
|
Hi i have problem in doing average Right now i am using s7 1200. I need to do average calculation for 4-20mA analyzer. The details are i need to get 1value for each second till 30 second. And then i need to sum the value. After that i need to divide by 30 since i need the average. Can someone suggest how to do this calculation. Since i need to use time pulse and count up ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 01/08/2024 08:28:18New subject after splitting |
|
| 1/8/2024 9:15 AM | |
|
Joined: 7/9/2015 Last visit: 1/19/2026 Posts: 4500 Rating:
|
Hi, do you know LGF library? Ther you will find an FC called LGF_FloatingAverage - this could be suitable for you. Library of general functions (LGF) for SIMATIC STEP 7 (TIA Portal) and SIMATIC S7-1200 / S7-1500Regards, Towome |
|
|
|
This contribution was helpful to
|
|
| 1/10/2024 4:01 AM | |
|
Joined: 12/20/2023 Last visit: 2/12/2025 Posts: 2 Rating:
|
thanks for your suggestion. but right now im trying to do by flow. unfortunately im stuck at sum and count
|
Follow us on