Beckhoff Automation GmbH & Co. KG TX1200 — 10.1.4.1 Configure Visualization Elements

Visualization The input of color values: Sample: e1.dwFillColor := 16#00FF00FF; A color is specified as a hexadecimal number resulting from the blue/green/red (RGB) components. The first two zeros after "16#" should be set to fill the DWORD size. 256 (0-255) colors are available for each color value FF Blue part 00 Green part FF Red part 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 TX1200 284 Version: 1.3 Component (+data type) Meaning Sample (the object name "vis1" was defined for the ele- ment. ) corresponding setting option in the configura- tion dialog: Component (+data type) Meaning Sample (the object name "vis1" was defined for the element. ) corresponding setting option in the configuration dialog: dwFillColorAlarm :

DWORD; Fill color in case of alarm (by TRUE of component bToggleColor, see above) (for input of color values see after the table) vis1.dwFillColorAlarm:= 16#00808080; (if variable togglevar is set to TRUE, the element becomes gray) - Cat. Colors: Alarm color | Inside - Cat. Color variables: Alarm color inside dwFrameColor: DWORD; Frame color (for the input of the color values see after the table) vis1.dwFrameColor:= 16#00FF0000; (frame is blue in "normal" state) - Cat. Colors: Color | Frame - Cat. Color variables: Color for frame dwFrameColorAlarm:

DWORD; Frame color in case of alarm (by TRUE of component bToggleColor, see above) (for input of color values see after the table) vis1.dwFrameColorAlarm: =16#00808080; (if variable vis1.bToggleColor is set to TRUE, the element frame becomes gray) - Cat. Colors: Alarm color Frame - Cat. Color variables: Alarm color for frame dwFillFlags: DWORD; Color, as defined with the color variables, can be turned on and off. 0 = switched on, >0 = switched off vis1.dwFillFlags:=1; (the element becomes invisible) - Cat. Colors: No color inside+ None Frame color - Cat. Color variables: FillFlags dwFrameFlags: DWORD; Frame presentation 0 full line 1 dashed ( --- ) 2 dotted (... ) 3 dash-dot ( .

) __ 4 dash-dot-dot ( .. ) _ 8 hide line vis1.FrameFlags:=1; (the frame is displayed dashed) - Cat. Color variables: FrameFlags