Using the datalogsnapshot command, Using the datalogsnapshot command -38 – Rockwell Automation 9301 Series RSView32 Users Guide User Manual
Page 238
7–38
RSView32 User’s Guide
Using the DataLogSnapshot command
You can record tag values using the DataLogSnapshot <file>
command or DataLogSnapshot * command.
The DataLogSnapshot <file> command records tag values for all tags
in the specified model at the instant the command is executed. The
DataLogSnapshot * command records tag values for all tags in all
running models at the instant the command is executed.
Use these commands anywhere an RSView32 command or macro can
be entered. For example, enter the command as the action for an
event.
Operators can also use these commands at runtime. For details, see
“Providing operators with a way to log on demand” on page 7-39.
Example: Creating an event for on demand logging
To create an event that will trigger logging when an alarm occurs:
1.
Click On Demand as the log trigger.
2.
Open the Event editor. Create an expression such as:
If alm_in_alarm(motor_fault) and new_batch_started then 1 else 0
3.
In the Event editor’s Action field, type
DataLogSnapshot <file>
where file is the name of the data log model.
When tag1 goes into alarm, the DataLogSnapshot <file> command
runs. All tags in the model will then be logged (not just the tag in
alarm).