Event table

The element Event table can be used to display events from the TcEventLogger and the TwinCAT 3 EventLogger in the form of a table on a visualization page. The events are read using the function block "FB_AdsReadEvents" (TcEventLogger) or "FB_ReadTc3Events" (TwinCAT 3 EventLogger) and forwarded to the visualization element via an array. An example of the configuration of the element can be found in the section "Configuration of the event table". This element is available from Build 4020.0. The event table can be used with the TwinCAT 3 EventLogger from Build 4026.0.

Event table 1:

Properties editor

The properties of a visualization element - except alignment and order - can all be configured in the properties editor. By default, this editor opens next to the visualization editor, or it can be opened explicitly via the "Properties" command (which can be found in the View menu as standard).

A property can be modified by editing the field "Value". To this end, an input field, a selection list, a dialog or checkbox that can be activated is provided in this field, depending on the element type. The value field opens

If a variable is assigned,

Working in the list of properties can be made easier with the aid of default, sorting and filter functions.

Element properties

All element properties and their descriptions are listed below.

Element name

The element name can be changed. Standard name is "GenElemInst_x". "x" stands for a sequential number.

Element type

The element type is entered here. For three element groups it is possible to switch between the corresponding elements by changing the element type:

Message data array

Assign the output variable "aEvents" of the function block used here: "FB_AdsReadEvents" if the TcEventLogger is used and "FB_ReadTc3Events" if the TwinCAT 3 EventsLogger is used. The active events are saved in the array.

Position

Here you can define the position (X/Y coordinates) and size (width and height) of the element in pixels. The origin is in the top left corner of the window. The positive x-axis is on the right, the positive y-axis runs downwards. If the values edited, the displayed element is simultaneously modified in the visualization editor.

X

Horizontal position in pixels – X=0 is the left edge of the window.

Y

Vertical position in pixels – Y=0 is the upper edge of the window.

Width

Width of the element in pixels

Height

Height of the element in pixels

Columns

The element TcEventTable contains a table with the following seven columns:

Columns

Setting options for the seven columns

Row height

Row height in pixels

Scrollbar width

Width of the scrollbar in pixels

Sorting order

Here you can set the order in which the events are displayed in the element:

  • Newest first
  • Oldest first

Column

Column width

Column width in pixels

Text properties

Here you can modify the text properties for the column:

  • Horizontal alignment
  • Vertical alignment
  • Font
  • Font color

Detail properties

In addition to the table in which the events are displayed, the element TcEventTable has a detail field. If one of the events in the table is selected during runtime, further information about the event is displayed in the detail field. This event (TwinCAT 3 EventLogger: alarms only) can be acknowledged via the acknowledgement button Event table 3:.

General text properties

You can set the text properties for all detail cells apart from the message cell here:

  • Horizontal alignment
  • Vertical alignment
  • Font
  • Font color

Message text properties

You can set the text properties for the message cell here:

  • Horizontal alignment
  • Vertical alignment
  • Font
  • Font color