|
<< Click to Display Table of Contents >> Manual > Monitoring system construction guide > Construction of main functions > Alarm > Creating original alarm screens without using screen libraries > Create your own real-time alarm screen |
overview
Here, we will explain the steps to create your own "Real-time Alarm Screen", assuming that the following settings are made on the Panel Server side.
Tag configuration
Unit name: U01 ... Virtual device
Folder name: F01
tag: Five consecutive tags from M0000 to M0004 (internal relay)
Defining Actions
Alarm server (CSV) Action: Alarm
Alarm master definition
[ALARMID],[RECOVER],[ACK],[ONCONDITION],[CM0],[CM1]
CM0: Alarm message
CM1: Character string representing the group (minor failure, medium failure, major failure, etc.)
(Example definition)
Alarm ID, Occurrence recovery, Confirmation, Occurrence condition, Comment 0, Comment 1 [ALARMID],[RECOVER],[ACK],[ONCONDITION],[CM0],[CM1] 0,y,y,U01.F01.M0000,M0 Alarm, Minor fault 1, y,y,U01.F01.M0001, M1 alarm, medium failure 2, y,y,U01.F01.M0002, M2 alarm, medium failure 3, y,y,U01.F01.M0003, M3 alarm, serious failure 4, y,y,U01.F01.M0004, M4 alarm, serious failure |
Download the sample
The creation examples shown on this page are provided with samples.
The sample can be downloaded from below.
Procedure
1.Create a form for real-time alarms from Panel Editor.
Add one form and change the name to "AlarmReal".

Change the DefaultForm root property of the root properties to "AlarmReal" and specify it as the form that will be used when the application is launched.

2.Add a title label
Paste Label control in the upper left corner of the form as the screen title. For example, set Text to "Real-time Alarm Screen" and set the font size, color, etc. as desired.

3.Paste Remote alarm grid client control
Paste Remote alarm grid client control into the form. Select Remote alarm grid client control from the control view.

The following shows the remote alarm grid attached.

4.Remote Alarm Grid Property Settings
From the Remote Alarms Grid property page, change the settings for the following properties:
Properties |
Setting contents |
|
Name |
"Alarm" |
|
AlarmServer |
"Alarm" (*The Alarm server action name defined on the Panel Server side) |
|
AlarmClientType |
"HISTORICAL1" |
|
AlarmLayout |
Describe the layout of the real-time alarm. For example, write it as follows:
|
|
AlarmTextColor |
Specify the alarm display color. Here, white is displayed.
|
5.Remote Alarm Grid Initialization Script
In the OnInitialize event of the remote alarm grid, write the process to connect to Alarm server and obtain real-time alarm information.
event OnInitialize() { this.Connect(); this.SubscribeRealtime("", 100); } |
|
The second argument of the SubscribeRealtime method is the maximum number of alarms to display. Since 100 is specified here, the most recent 100 alarms will be displayed. |
6.Screen switching button
Now, implement a button near the bottom of the screen to switch the display to the alarm summary screen created in "Creating your own alarm summary screen". As an example, we will use the screen display call button from the parts library.

This completes the creation of the real-time alarm screen.
Operation check
Now let's check how it works.
Click Online (yellow arrow) at the top of the Panel Server screen.
Next, click the browser run icon (green arrow) at the top of the Panel Editor screen to call up Panel Browser.
Panel Browser has started.

The screen shows the history of alarms that have been handled so far.
Now, let's create a new alarm. Change the value of M0004 from Panel Server to TRUE.
Then, an alarm M0004 occurred and the list was automatically updated.

Next, display the alarm summary screen and click the "Confirm all" button to return to the real-time alarm screen.
Then, the confirmation operation was displayed in the list.

Next, change the value of M0004 from Panel Server back to FALSE.
The alarm recovery is now displayed in the list.
