25.07.2014 Views

RSView Supervisory Edition Installation Guide

RSView Supervisory Edition Installation Guide

RSView Supervisory Edition Installation Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the DataLogSnapshot command<br />

You can record tag values using the DataLogSnapshot command with<br />

these parameters: or * (asterisk).<br />

DataLogSnapshot (where is a data log<br />

model name) records tag values for all tags in the specified model at the<br />

instant the command is executed.<br />

DataLogSnapshot * records tag values for all tags in all running models<br />

at the instant the command is executed.<br />

You can use this command anywhere you can issue an <strong>RSView</strong><br />

command or macro. For example, enter the command as the action for<br />

an event.<br />

Operators can also use this command at run time. For details, see<br />

“Providing a way to log on demand” on page 13-15.<br />

Example: Creating an event for on-demand logging<br />

To create an event that will trigger logging when an alarm occurs:<br />

1. Click the On Demand log trigger.<br />

2. Open the Event editor. Create an expression such as:<br />

If alm_in_alarm(motor_fault) and new_batch_started then 1 else 0<br />

3. In the Event editor’s Action field, type<br />

DataLogSnapshot where ‘component’ is the name of<br />

the data log model.<br />

When the tag called motor_fault goes into alarm, and the tag called<br />

new_batch_started is 1, the DataLogSnapshot <br />

command runs. All tags in the model will then be logged (not just the<br />

tag in alarm).<br />

13–14 <strong>RSView</strong> <strong>Supervisory</strong> <strong>Edition</strong> User’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!