Visualization Dialog for configuring a Table, Category Selection Here you can set the following parameters concerning the selection behaviour within the table: Selection color : Press this button to get the standard color dialog for choosing a color for selected cells. Selection type : Define which part of the table will be selected when you perform a mouse-click on one of the table fields in online mode: Select single cells : Only the cell will be selected. Select only rows : The whole line will be selected. Select only columns : The whole column will be selected. Select rows and columns : The whole column and line will be selected. Frame around selected cells :
A selected cell gets surrounded by a frame. Variable for selection X, Variable for selection Y: Here you each can enter a project variable, which will indicate the X- resp. Y-Index of the selected table cell. Example: Create a table element visualizing the array of a structure: Define the following structure TYPE strucTab : STRUCT iNo: INT; bDigi : BOOL; sText:STRING; byDummy: BYTE; END_STRUCT END_TYPE In PLC_PRG define the following array: arr1:ARRAY [1..5] OF strucTab; and the following variables: selX:INT; selY:INT; Create a visualization object and insert a table element. Configure like follows: Cat. table: data array: PLC_PRG.arr1 TwinCAT 2 PLC Control 218 Version: 1.0