Event table

The event table element can be used to display TcEventLogger messages in the form of a table on a visualization page. The messages are read via the function block "FB_AdsReadEvents" 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.

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:

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 messages 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 messages are displayed, the element TcEventTable has a detail field. If one of the messages in the table is selected at runtime, further information about the message is displayed in the detail field. The acknowledgement button Event table 3: can be used to acknowledge this message.

General text properties

Here you can set the text properties for all detail cells apart from the message cell:

  • Horizontal alignment
  • Vertical alignment
  • Font
  • Font color

Message text properties

Here you can set the text properties for the message cell:

  • Horizontal alignment
  • Vertical alignment
  • Font
  • Font color

Auxiliary setting

Message data array

Here, the output variable "aEvents" of the function block "FB_AdsEventReader" has to be assigned, in which the active messages of TcEventLogger are stored.