178 Rockwell Automation Publication 1426-UM001J-EN-P - August 2019
Chapter 6 Logging
Trigger Data Log Single Record Retrieval
A controller or application can sequentially retrieve trigger data records by 
following the process that is described in this section, following these general 
tasks. Tables that are referenced are in Appendix A
. 
1. Read the number of trigger data files from the Statistics.Logging
 table.
The Statistics.Logging
 table contains the following trigger data 
information:
• Element 11, the number of trigger data records (cycles)
• Element 12, the number of trigger data files
2. Wri te the Configuration.Log_Read
 table with Selected Log = 12.
The Configuration.Log_Read
 table contains the following elements:
• Element 0: Write a value of 12 to request the next trigger data log or 
trigger data setpoint information file name, or a value of 13 to select the 
trigger data header 
• Element 1: Write a 0 to return the most recent file name first or a 1 to 
return the oldest file name first
3. Read the trigger data setpoint information file name from the 
LoggingResults. TriggerLog_Setpoint_Info_File_Name Data Table
 one or 
more times until the desired file name is returned.
4. Read the trigger data file name from the 
LoggingResults.TriggerLog_FileName Data Table
 one or more times until 
the desired file name is returned.
5. Write the selected file names into the Configuration.TriggerDataLogFile 
Data Table and Configuration.TriggerSetpointInfoFile Data Table.
6. Perform a read of the LoggingResults. TriggerData_Header Data Table
 
and store the results in a suitable location.
7. Perform sequential reads of the LoggingResults. TriggerData_Log Data 
Tab l e table and store the results in a suitable location. 
The first read returns the total number of cycle data records in the log 
along with the selected parameter ID numbers. Subsequent reads return 
each the value of the selected parameters, cycle-by-cycle. 
Commands
• Clear trigger data log