Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

Generating Custom Alarms and Events

Geo SCADA Knowledge Base

Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Communities
  • Knowledge Center
  • Geo SCADA Knowledge Base
  • Generating Custom Alarms and Events
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we?ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Labels
Top Labels
  • Alphabetical
  • database 32
  • Web Server and Client 31
  • Lists, Events & Alarms 21
  • WebX 19
  • Request Form 18
  • ViewX 15
  • Setup 12
  • Application Programming 12
  • Telemetry 7
  • Mimic Graphics 7
  • Downloads 6
  • Support 5
  • IoT 5
  • Drivers and Communications 4
  • security 4
  • SCADA 4
  • Geo SCADA Expert 4
  • DNP 3 3
  • IEC 61131-3 Logic 3
  • Events & Alarms 2
  • Trends and Historian 2
  • Virtual ViewX 2
  • Lists 2
  • Privacy Policy 1
  • OPC-UA 1
  • Architectures 1
  • Templates and Instances 1
  • ClearSCADA 1
  • Releases 1
  • Maps and GIS 1
  • Tools & Resources 1
  • Mobile 1
  • Geo Scada 1
  • Previous
  • 1 of 4
  • Next
Latest Blog Posts
  • Geo SCADA Expert 2022
  • Geo SCADA 2022 Operating System Support
  • Geo SCADA 2022 Upgrade Strategy
  • Geo SCADA 2022 Upgrade Notes
  • Geo SCADA 2022 Known Issues
Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
sbeadle1
Spock sbeadle1 Spock
Spock
‎2021-06-09 02:54 PM
0 Likes
0
489
  • Bookmark
  • Subscribe
  • Email to a Friend
  • Printer Friendly Page
  • Report Inappropriate Content
‎2021-06-09 02:54 PM

Generating Custom Alarms and Events

Originally published on Geo SCADA Knowledge Base by sbeadle1 | June 09, 2021 11:54 PM

📖 Home  Back  
It is possible to log your own custom events to the Event Journal and alarms to the alarm list.

Custom Events 



Every item in the database has a LogInterfaceEvent method that can be called by a program (ST Logic program, VB Script etc.) The LogInterfaceEvent method logs a custom event, with a special category, to the Event Journal and has 3 parameters:
  Parameter   Detail
  Time   The timestamp for the event.
  Severity   The severity for the event, range 1 to 1000. We recommend that you use a value that corresponds with one of the severities that are configured on your system (see the Database Configuration\Severities section on the Server Configuration Tool). For example, with the default settings in place, you could enter 667 for the High severity.
  Message   A string value that defines the message for the event. This is the message that will be shown in the Event List.

So, the following code (taken from an ST program), logs a High severity event for the item called 'Outstation1' (where 667 is the low boundary for the High severity range). The event is logged for 15.25.56 on February 12th 2007. The message for the event is: Outstation in Normal Mode.

METHOD  LogEvent AT %M(.Outstation1.LogInterfaceEvent) : DT, INT, STRING;END_METHODLogEvent (DT#2007-02-12-15:25:56,667,'Outstation in Normal Mode');


There are also methods to find, display, edit and delete these custom event messages.

Custom Alarms



The root group (system item) also has a SetInterfaceAlarm method that can be used to generate a custom alarm for a system. As with the LogInterfaceEvent method, the SetInterfaceAlarm method can be called by a program such as an ST program or VBScript. When the SetInterfaceAlarm method is called, a text alarm is generated. This alarm is associated with the system.

The SetInterfaceAlarm method has 4 parameters:
  Parameter   Detail
  Time   The timestamp for the alarm.
  Severity   The severity for the alarm, range 1 to 1000.
  Source   A string value that describes the origin of the alarm. This is displayed in the Source column of the Alarm Banner.
  Message   A string value that defines the message for the alarm. This is the message that will be shown in the Alarm Banner.

The following code (taken from an ST program), generates a Low severity alarm for the system (where 1 is the boundary for the Low severity range). The alarm is generated at 10.04.12 on February 19th 2007, and the source of the alarm (the item to which the alarm relates) is defined as Outstation 2A. Note that this is a string entry and can be any description of the alarm source. The message for the alarm is: Outstation is in Test Mode.

METHOD  SetAlarm AT %M($Root.SetInterfaceAlarm) : DT, INT, STRING, STRING;END_METHODSetAlarm (DT#2007-02-19-10:04:12,1,'Outstation 2A','Outstation is in Test Mode');


If Area of Interest is enabled a fifth parameter is used, a string specifying the Area of Interest.


Example



The LogInterfaceEvent and SetInterfaceAlarm methods can be used during outstation testing on a system.

A program is written that sets an outstation into test mode for a specific amount of time, for example, an hour. During that time, only a select group of users will be able to view the Low severity alarms and events for the outstation. Normally, an engineer will set the outstation back to normal mode within the hour, and this allows all users to see all alarms on the outstation again. When the engineer sets the outstation to normal mode, the program calls the LogInterfaceEvent method for the database item that represents the outstation, and the event indicates that the outstation is no longer in test mode.

However, if the engineer forgets to set the outstation to normal mode, the program will call the SetInterfaceAlarm method when the test time period expires. When the SetInterfaceAlarm method is called, an alarm is raised for the system. This alarm indicates that an outstation is in test mode and needs to be set to normal mode.

Go: Home Back
Labels
  • database

  • Lists, Events & Alarms

Author

Biography

sbeadle1

  • Back to Stream
  • Newer Article
  • Older Article
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account?Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2023 Schneider Electric, Inc