Scheduled Reset of Daily and Monthly Counters in SCADAPack Logic
In many SCADAPack applications, it's essential to reset counters at regular intervals to track daily and monthly metrics accurately. This article outlines a logic-based approach to resetting counters at scheduled times using function blocks.
Objective
- Daily Counters: Reset automatically at midnight every day.
- Monthly Counters: Reset automatically at midnight on the first day of each month.
Approach
To achieve this, the logic uses the Schedule Function Block (FFB) to trigger resets at specific times:
- A schedule is configured to activate at 00:00 (midnight) daily.
- A separate schedule is configured to activate at 00:00 on the first day of each month.
These scheduled triggers are then linked to logic that resets the respective counters.
Logic Overview
The combined logic includes:
- Daily Reset Logic: Activated by the daily schedule FFB, which resets all daily counters.
- Monthly Reset Logic: Activated by the monthly schedule FFB, which resets all monthly counters.
This ensures that counters are cleared at the correct intervals without manual intervention.
Below is the sample logic for the same
Monthly Reset Logic
Monthly Reset Logic:
Publikováno pro: Schneider Electric Česká republika
Potřebujete pomoc?
Nástroj pro výběr produktů
Rychle a snadno vyhledávejte správné produkty a příslušenství pro vaše aplikace.
Získejte nabídku
Poptejte se nás online a náš lokální specialista se s vámi spojí!
Kde nakoupit?
Jednoduše najděte nejbližšího distributora výrobků Schneider Electric ve vašem okolí.
Centrum nápovědy
Zdroje podpory pro všechny své potřeby najdete na jednom místě.