Saving Alarms to External Storage

You can configure alarm groups to save alarm data to a CSV or TXT file so you can view the alarm output on your computer.

Example Operation

Setting Workflow

Add Variables

Add Alarm Groups

Add Alarms

Set up Parts

Set up Scripts

Add Variables

Project Explorer : [Variables] ➞ [All Variables]

Add the following variables.

Variables properties :

[Name] [Data Type]

Var1

[BOOL]

Var2

[INT]

Var3

[UINT]

Var4

[UINT]

Add Alarm Groups

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

Add the following alarm group.

[All Alarms] properties :

Tab Property Value
[Basic] [Export Data] Enable
Data Storage USB Storage
Append Date/Time
Detect Modification
Folder Name

\Alarm

File Name Alarm

[Export Status]

Enable
Save Status

[Variable]

[Name]: Var3
Error Status

[Variable]

[Name]: Var4

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

Add the alarm group.

Alarm Group (AlarmGroup1) Properties :

Initial 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 is abnormal.

Project Explorer : [AlarmGroup1] ➞ [Level Alarm]

Add the following LEVEL alarm.

Level Alarm properties :

Row Tab Property Value
1 [Basic] [Message] Temperature is abnormal.
[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.

Switch object (Name: Switch1) properties :

Initial 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.

Legend

Block

1

[Triggers] [Touch] [Touch]

2

[Values] [Screen Object]

3

[Operations] ➞ [HMI Functions] [Export Alarm Data]