Our Brands

Impact-Company-Logo-English Black-01-177x54

Welcome to the Schneider Electric Website

Welcome to our website.
		
How can we help you today?
You are currently viewing the content available in Vietnam. If you are looking for information for another region, please select the correct country from the top-left dropdown in the page and 'Navigate to Browse FAQs' in the Support menu.
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

Monthly Reset Logic:

Reset Logic

Schneider Electric Vietnam

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:
  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Center
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings