Lenze PLC Designer PLC Designer (R2-x) Uživatelský manuál Strana 724

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 844
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 723
1 2 ... 719 720 721 722 723 724 725 726 727 728 729 ... 843 844

Komentáře k této Příručce

Žádné komentáře