# Acknowledging the Alarm History

Several operations are available such as acknowledging and erasing the selected alarm.

## Example Operation

## Setting Workflow

1. Add Variables
2. Add Alarm Groups
3. Add Alarms
4. Set up Parts
5. Set up Scripts

## Add Variables

### Project Explorer : [Variables] ➞ [All Variables]

Add the following variables.

#### Variables properties :

[Name] | [Data Type]
Var1 | [BOOL]
Var2 | [INT]
Var3 | [BOOL]
Var4 | [BOOL]
Var5 | [BOOL]
Var6 | [BOOL]
Var7 | [BOOL]

## Add Alarm Groups

### Project Explorer : [Alarm/Events] ➞ [All Alarms]

Add the alarm group.

#### Alarm Group (AlarmGroup1) Properties :

Default Value

## Add Alarms

### Project Explorer : [AlarmGroup1] ➞ [Bool Alarm]

Add the following BOOL alarms.

#### Bool Alarm properties :

Row | Tab | Property | Value
1 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var1
[Message] | Pressure abnormality.
2 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var3
[Message] | Tank A Stopped
3 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var4
[Message] | Tank B Stopped.
4 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var5
[Message] | Line1 - Error
5 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var6
[Message] | Line2 - Error
6 | [Basic] | [Alarm Type] | [HiHi]
[Trigger Condition] |
[Variable] | [Variable] [Name]: Var7
[Message] | Check the wiring.

### Project Explorer : [AlarmGroup1] ➞ [Level Alarm]

Add the following LEVEL alarm.

#### Level Alarm properties :

Row | Tab | Property | Value
1 | [Basic] | [Message] | Temperature abnormality.
[Alarm Type] | [Hi]
[Value] | 80
[Deadband] | 0
[Variable] | [Variable] [Name]: Var2

## Set up Parts

### Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Drag and drop the following objects from the [Tool Chest] to the screen.

#### Alarm Summary object (Name: AlarmSummary1) properties : A-1

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [Alarm Group] | AlarmGroup1
[Sort] | [Column] | [Date]
[Order] | [DESC]

#### Switch object (Name: Switch1) properties : B-1

Default value.

#### Switch object (Name: Switch2) properties : B-2

Default value.

#### Switch object (Name: Switch3) properties : B-3

Default value.

#### Switch object (Name: Switch4) properties : B-4

Default value.

#### Switch object (Name: Switch5) properties : B-5

Default value.

#### Switch object (Name: Switch6) properties : B-6

Default value.

#### Switch object (Name: Switch7) properties : B-7

Default value.

#### Switch object (Name: Switch8) properties : B-8

Default value.

## Set up Scripts

### Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Set the following script on the object.

From the [Tool Chest] drag and drop the script to the Script editor.

### Alarm Summary

#### Switch object (Name : Switch1) script : B-1 Acknowledge

#### Switch object (Name : Switch2) script : B-2 Delete

#### Switch object (Name : Switch 3) script : B-3 SetHideFlag

Legend | Block
1 | [Triggers] ➞ [Touch] ➞ [Touch]
2 | [Values] ➞ [Screen Object]
3 | [Operations] ➞ [HMI Functions] ➞ [Alarm Summary]

### Alarm Group

#### Switch object (Name : Switch4) script : B-4 Acknowledge

###

#### Switch object (Name : Switch5) script : B-5 Delete

###

#### Switch object (Name : Switch6) script : B-6 SetHideFlag

###

#### Switch object (Name : Switch7) script : B-7 ResetHideFlag

###

#### Switch object (Name : Switch8) script : B-8 DeleteHiddenFlag

Legend | Block
1 | [Triggers] ➞ [Touch] ➞ [Touch]
2 | [Values] ➞ [Screen Object]
3 | [Operations] ➞ [HMI Functions] ➞ [Alarm Group]