Supported platforms: CODESYS 2.3, CODESYS 3.5

List of EventLog's data types

Event structure uses only bytes, which hides the endianness. Larger than byte values uses 2 or 4 bytes.  This is done by naming more bytes to construct one value.

EL_Event

Name of the Member

Data Type

Description

EventFlags

BYTE

State of the event

EventID_Low

BYTE

Event ID low byte

EventID_High

BYTE

Event ID high byte

Source

BYTE

Source of the event

EventType

BYTE

User definable type of the event

TimeStamp_Byte0

BYTE

Time stamp of the event in seconds, LSB

TimeStamp_Byte1

BYTE

Time stamp of the event in seconds

TimeStamp_Byte2

BYTE

Time stamp of the event in seconds

TimeStamp_Byte3

BYTE

Time stamp of the event in seconds, MSB

EventCount_Low

BYTE

Event count low byte

EventCount_High_ResetBit

BYTE

Event count high bits (7 bits) and reset counter bit

2#RCCC CCCC

R=Reset bit

C=Counter value bits

 

EL_EventExt

Name of the Member

Data Type

Description

EventFlags

BYTE

Event chunk info and status flags

Data

ARRAY [1..10] OF BYTE

User data field, 10 bytes

 

EL_EventLog

Name of the Member

Data Type

Description

EventHead

WORD

Event log index number of latest event in log.

EventTail

WORD

Event log index number of oldest event in log.

EventRead

WORD

Read position, used on upper level

Version

WORD

EL_EventLog struct version number.

EventLog

ARRAY

[0...65535]

OF EL_Event

Event log array.

 

EL_EventState

Name of the Member

Data Type

Description

State

BYTE

Last saved state of an event

TimeStamp

WORD

Time stamp

 

EL_EventArray

Name of the Member

Data Type

Description

LibraryAlarms

ARRAY[EL_START_OF_LIBRARY_EVENTS .. EL_END_OF_LIBRARY_EVENTS] OF EL_EventState

Array to store current states of library events

ApplicationAlarms

ARRAY[0 .. EL_END_OF_EVENTS] OF EL_EventState

Array to store current states of application events

 

EL_SortingEvent

Name of the Member

Data Type

Description

TimeStamp

DWORD

Timestamp for chronological order

HashCode

WORD

Compare hash code for speed optimization

EventLogIndex

WORD

Absolute position to event log index. (points to event data)

Previous

WORD

Previous absolute position of stored sorting events

Next

WORD

Next absolute position of stored sorting events

 

 

Source file Topic000343.htm

Last updated 24-Apr-2025