Beckhoff Automation GmbH & Co. KG TX1200 — 10.1.4.2 Configure Table

Visualization 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 Cat. Columns: (Close the dialog which will open with YES) – Transfer the components iNo, bDigi, sText to the right window - In the right window perform a double-click on the first entry (PLC_PRG.arr1[INDEX].iNo) and in the dialog which will open, replace the default title by "Number".

Confirm with OK and also define new column titles for the other two entries (e.g. "Value" and "Text"). – In category 'Spec.Table' enter at 'Variable Selection X': "PLC_PRG.selX" and at Variable Selection "Y: PLC_PRG.selY". Activate option 'Frame around selected cells'. Press button 'Selection color' and choose color 'yellow'. Close the configuration dialog with OK. The table element now should be displayed as shown in the following: At the left border the numbers of the array index, at the top the titles of the selected structure components.

You can modify the column widths by placing the cursor on the separator between two columns and moving the mouse as soon as the cursor appears as a horizontal double-arrow. . In online mode the current values of the array elements will be displayed in the table cells. As soon as you select a table cell by a mouse-click, it will get yellow-colored and surrounded by a frame. Example: Meter TX1200 288 Version: 1.3