beautypg.com

Moving data from the secondary path, Logging on demand, Moving data from the secondary path – 13 – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 591: Logging on demand – 13

background image

22

S

ETTING

UP

DATA

LOGGING

22–13

• •

22

Pla
ceho

lde

r

To provide operators with a way to switch manually to the primary path or ODBC
database at run time, create a button object in a graphic display, or a display key or client
key, that uses DataLogSwitchBack as the press action.

Moving data from the secondary path

When you begin writing to or reading from a data log model, if there are files in the
secondary (or backup) path, FactoryTalk View sends a message to the FactoryTalk

Diagnostics log.

You must move these files manually to the primary path or ODBC database. To do this,
use the FactoryTalk View command DataLogMergeToPrimary.

If a data log model is running when the command is run, FactoryTalk View performs a
switchback to the primary path or ODBC database for the specified model, or all running
models.

If the model uses file sets, FactoryTalk View moves all files on the secondary path
(including the current file set) to the primary path, begins a new file set on the primary
path, and then continues logging to the new file set.

If the model uses the ODBC format, FactoryTalk View merges the data in the ODBC
backup files into the ODBC database, and then continues logging to the ODBC database.

Using the DataLogMergeToPrimary command

You can use the DataLogMergeToPrimary command with either of these parameters:

DataLogMergeToPrimary <component> (where is a data log model
name) moves data for the specified data log model, whether or not the model is
running.

DataLogMergeToPrimary * moves data for all data log models whether or not they are
running.

You can use the DataLogMergetoPrimary command anywhere you can type a
FactoryTalk View command or macro.

To provide operators with a way to restore backup data to the primary path or ODBC
database at run time, create a button object in a graphic display, or a display key or client
key, that uses DataLogMergetoPrimary as the press action.

Logging on demand

To record the values of tags in a data log model on demand, use the FactoryTalk View
command DataLogSnapshot. If you specified the On Demand trigger for the data log
model, logging will occur only when the DataLogsnapshot command is run.