| This section explains the basics of the feature. Please utilize the feature according to your site environment. |
Exercise 1: Checking the Alarm Contents with Alarm Summary
(1) Alarm Configuration
a) Select [Tools] – [Alarms] to bring up the [Alarm Configuration] window. Add 2 alarms to the alarm group 1. Configure an alarm with the condition of “Greater than 200” and configure another alarm with the condition of “Greater than 300”. Enter the Alarm Description as “Exceeded 200L” and “Exceeded 300L”.
...
b) Select [Draw] – [Alarm Summary] and click the page to add the alarm summary object. Double-click the object to configure the details such as the alarm group to be displayed.
...
c) Since the operation will be checked by manually changing the tag value, add an object to the page and use ‘EntryData’ feature as shown below.
...
(2) Checking the Operation
a) Write the project to Xpanel or execute the simulator to check the operation. Input the value “230” to the ‘STORAGE’ tag. An alarm will occur and you can check the contents of the alarm.
...
b) Input the value “190” to the tag. The existing alarm will be cleared.
...
c) Input the value “320” to the tag. Two alarms will occur simultaneously.
...
d) Input the value “270” to the tag. Only one alarm (Exceeded 300L) will be cleared.
...
Exercise 2: Playing the Audio File when an Alarm Occurs
| - An audio file must exist in the Xpanel or USB/SD memory. - A command PlayWave() requires AUX socket in the Xpanel device. - This example is only applicable in the XpanelDesigner V2.50 or above. |
(1) Alarm Configuration
a) Select [Tools] – [Alarms] to bring up the [Alarm Configuration] window. Press the [Add] button to bring up the window as shown below. The following figure is the configuration window used in the Exercise 1.
...
b) Set the ‘Action on Alarm’ as ‘Command Script’ and enter the PlayWave() command in the ‘Execute’ field. Refer to the table below for the detailed information.
PlayWave | Executes the wav file in the assigned path. |
Subroutine | PlayWave(WavFileLocation, Path, Sync/Async) |
Description | Executes the *.wav file from the Path in the WavFileLocation. The WavFileLocation can be expressed with the following strings: 0: _LOCAL_ (\\Xpanel\) 1: _SDMEM_ (SD Memory Root Path) 2: _USBMEM_ (USB Memory Root Path) The Path must include the file’s name and extension. Enter 0 at Sync/Async, which indicates the ‘Sync’, to stop the next script’s execution until the end of the audio file. Enter 1 to continue the script execution while the audio file is operating. |
Exercise | Execute the ‘alarm.wav’ file in the sound folder of the Xpanel. The next script will not be executed until the audio file ends. PlayWave(_LOCAL_, "sound/alarm.wav", 0); |
...
(2) Checking the Operation
a) Write the project to the Xpanel and execute the project. When the alarm occurs, you will find that the audio file is executed.
...