beautypg.com

Using the datalogmergetoprimary command to move, Secondary files to the primary path – Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 226

background image

7–26

RSView32 User’s Guide

primary path or ODBC database. You must move it manually using
the DataLogMergeToPrimary command.

RSView32 also switches back to the primary path or ODBC database
when you use the DataLogMergeToPrimary command. Note that you
cannot switch manually from the primary path or ODBC database to
the secondary or backup path.

You can give operators ways to issue these commands at runtime. For
example, you can create a button object and use the
DataLogSwitchBack <file> command as the press action.

Using the DataLogMergeToPrimary command to

move secondary files to the primary path

When you begin writing to or reading from a data log model,
RSView32 sends a message to the activity log if there are files on the
secondary or backup path. You must move data manually from the
secondary or backup path to the primary path or ODBC database
using the DataLogMergeToPrimary > command or
DataLogMergeToPrimary * command.

The DataLogMergeToPrimary > command moves data for the
specified data log model, whether or not the model is running. The
DataLogMergeToPrimary * command moves data for all data log
models that are currently running. Use these commands anywhere an
RSView32 command or macro can be entered.

If a model is running when you issue these commands, RSView32 also
performs a switchback to the primary path or ODBC database for the
specified model or all running models. If a model uses the .dbf format,
RSView32 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 continues logging to the new file set. If a model uses the ODBC
format, RSView32 merges the data in the ODBC backup files into the
ODBC database and continues logging to the ODBC database.