49
automatically restored to the beginning of the log file so that the next read request will return the first (oldest)
event. To point to an arbitrary record, use the log partition status/control registers A100h-A107h (see Section
5.13).
Table 5-28 Event Log Windows Locations
Event log window Registers (see Table 5-29)
Event log window #1 0xCD80-0xCD87
Event log window #2 0xCD88-0xCD8F
Event log window #3 0xCD90-0xCD97
Event log window #4 0xCD98-0xCD9F
Event log window #5 0xCDA0-0xCDA7
Event log window #6 0xCDA8-0xCDAF
Table 5-29 Event Log Window Registers
Parameter Offset Type R/W Range
Status indication +0 UINT16 R Bit-mapped register:
bit 0 = 1 - the end record is being read (the end of a
log file reached)
bit 1 = 1 - reading after the end of file: the read
pointer has rolled over the end of a log file, i.e., the file
is being re-read from the beginning. This bit is cleared
when a new record is being read, or the read
sequence has changed by overwriting the partition
pointer.
bit 8 = 1 - no records logged in the partition
bit 9 = 1 - the record is corrupted
bit 15 = 1 - read error (detailed by bits 8-9)
The record sequence number +1 UINT16 R 0 to 65535 (increments modulo 65536 with each log)
Timestamp
1
+2 UINT32 R Local time (UNIX-style)
Fractional seconds portion of
timestamp (milliseconds)
+3 UINT16 R 0-990 (at 10 ms resolution)
Event cause +4 UINT16 R see Table 5-46
Log value
2
+5 INT32 R see Table 5-46
Event effect +6 UINT16 R see Table 5-46
Reserved +7 UINT16 R 0
1
Timestamp is given in local time in a UNIX-style time format: it represents the number of seconds since midnight
(00:00:00), January 1, 1970. The time is valid after January 1, 2000.
2
For the log value size and range, refer to Table 5-7.
NOTES:
1. If a requested record is corrupted (the redundant check fails), the record is reported with all zeros (except the sequence
number) and the bits 9 and 15 in the status indication word being set to 1.
2. If a record is requested when the log file is empty, the record is reported with all zeros and bits 8 and 15 in the status
indication word being set to 1.
Table 5-30 Event Log Parameters
Event cause code Event cause
High byte:
cause code
Low byte:
event origin (location)
Log value Event effect
Setpoint event Trigger parameter
ID high byte
(see Table 5-13)
Trigger parameter ID low byte
(see Table 5-13)
Trigger parameter
value
(see Table 5-13)
0xE100-0xE10F,
0xE200-0xE20F
(see Table 5-32)
Communications 0x5B Data location code (see Table 5-31) N/A See Table 5-32
Front panel 0x5C Data location code (see Table 5-31) N/A See Table 5-32
Self-check 0x5D Data location code (see Table 5-31) N/A See Table 5-32
Self-update 0x5E 8 = RTC N/A 0xF500 = RTC set
External event 0x63 0 = power down, 8 = power up N/A N/A