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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 844
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 723
L-force | PLC Designer
PLC Designer Visualization
722 DMS 3.2 EN 02/2011 TD29
Example for a blinking visualization element:
Define a global variable 'blink1' of type VisualObjectType in the configuration of a
rectangle. In a program of function block the value of a component of the structure
can be modified.
PROGRAM PLC_PRG
VAR
n:INT:=0;
bMod:BOOL:=TRUE;
END_VAR
(* Blinking element *)
n:=n+1;
bMod:= (n MOD 20) > 10;
IF bMod THEN
blinker.nFillColor := 16#00808080; (* Grau *)
ELSE
blinker.nFillColor := 16#00FF0000; (* Blau *)
END_IF
Vista de pagina 723
1 2 ... 719 720 721 722 723 724 725 726 727 728 729 ... 843 844

Comentarios a estos manuales

Sin comentarios