Exporting Logged Data

You can export the logged data into an external storage.

Example Operation

Setting Workflow

  1. Add Variables
  2. Add Logging Group
  3. Assign the Variables
  4. Set up Parts
  5. Set up Scripts

 

Add Variables

Project Explorer : [Variables] ➞ [All Variables]

Add the following variables.

Variables properties :

[Name] [Data Type] [Source] [Device Address]

Var1

[INT]

'Schneider Modbus Serial Equipment'

400005

Var2

[INT]

400030

Var3

[INT]

400031

Var4

[BOOL]

(Any)

(Any)

Add Logging Group

Project Explorer : [Logging] ➞ [All Loggings]

[All Loggings] properties :

Tab Property Value

[Basic]

[Max Record] 300

Project Explorer : [All Loggings]

Add the following logging group.

[Name]
LoggingGroup1

Logging Group (Name: LoggingGroup1) properties :

Tab Property Value
[Basic] [Condition Type] [ValueChange]
[Execution Condition] [ON]
[Trigger Variable] [Variable] [Name]: Var4
[Export Data]
[Write Data To] [USB Storage]
[Folder Name] \LoggingGroup
[File Name] LoggingGroup1

Assign the Variables

Project Explorer : [LoggingGroup1]

Assign the following variables.

Logging Group1 properties:

[Variable Name]
Var1
Var2
Var3

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 :

Default value.

Set up Scripts

Project Explorer : [Screen1]

Set the following script on the object.

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

Switch object (Name: Switch1) script :

Legend Block

1

[Triggers] [Touch] [Touch]

2

[Values] [Screen Object]

3

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