L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 733

Advertising
background image

L-force | PLC Designer

PLC Designer Visualization



DMS 3.2 EN 02/2011 TD29

731

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"
Cat. Columns: 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").

Cat. 'Selection': Enter here 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.

Advertising