Visualization elements of type windows controls, Configuration of the table element, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 201

Advertising
background image

L-force | PLC Designer

Visualization

DMS 4.1 EN 03/2011 TD29

199

8.20

Visualization elements of type Windows Controls

8.20.1

Configuration of the Table element
A table element can be inserted in a visualization in order to visualize one- or two-
dimensional arrays, structures or the local variables of an POU.
The configuration of the table is done in the visual element properties view, please see
the corresponding help page for detailed information on each property. In the
following some introductive examples of configuring a table element are presented.
First of all the variable to be visualized must be specified. For this purpose in the
element properties enter its complete path in property "Data array". The structure of
the variable determines the number of columns and rows of the table.
The rows of the table represent the index of the first dimension of the specified array.
The columns represent the second index of the array in case of two-dimensional arrays
or they represent the particular components of a structure or the local variables of a
POU. So, for example, a one-dimensional array with elements of basic type will be
represented with help of only one column, a structure will be represented with help of
one single row, whereas an array with elements of structure type will be represented
in a table having as many rows as array elements and as many columns as structure
components.
If the dimension of the assigned variable gets modified afterwards, for example by
changing the array borders or by adding or removing structure components, the table
can be updated
by entering a <Return> in any of the table fields. This will not change
the configuration of components which have remained vaild.
A table column can be duplicated by pressing <Ctrl> and - while keeping pressed this
key - a mouseclick on the header of the column to be duplicated.
A table column can be deleted by pressing <Ctrl>+<Shift> and - while keeping pressed
these keys - a mouseclick on the header of the column to be deleted.

Note: If you change the

data array

property of a table element, the other property

settings for the element will be reset to default!

Take a look to the following examples:

Declaration of variable

Structure of associated table element

arrDim1 : ARRAY[2..5] OF INT;

Note that the indices in the row header are equal to the indices
determining the first dimension of the array; so the numeration starts
with "2" in this example!

Advertising