Lenze PLC Designer PLC Designer (R2-x) Manual de usuario Pagina 733

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 844
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 732
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.
Vista de pagina 732
1 2 ... 728 729 730 731 732 733 734 735 736 737 738 ... 843 844

Comentarios a estos manuales

Sin comentarios