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.
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
- after a double-click,
- after a single click in a selected field,
- via the space bar, if the field was already selected.
If a variable is assigned,
- simply enter its name.
- Use the button to open the input assistant for selecting a variable. The Variables category lists all variables that have already been defined in the project.
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:
- Index: The index indicates the message numbers in the order in which they occurred.
- Class: The class describes the message type. It is defined when a message is created.
- Acknowledgment state: A message can be created with obligatory acknowledgment. The acknowledgment can take place in the program code or in the element. The state indicating whether the element is (still) to be acknowledged is displayed in this column.
- Reset state: Once a message has been enabled, it can be reset in the program code. This row indicates whether the message was already reset.
- Date, Time: The two columns ‘Date’ and ‘Time’ show the date and time at which the message has occurred.
- Message: The actual message text is displayed in the last column.
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:
|
Column
Column width |
Column width in pixels |
Text properties |
Here you can modify the text properties for the column:
|
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 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:
|
Message text properties |
Here you can set the text properties for the message cell:
|
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. |