Color Variables¶
Here you can enter project variables (e.g. PLC_PRG.color_inside), which should determine the particular property in online mode: These property definitions also or additionally can be programmed with the aid of components of the structure VisualObjectType. Therefore see the description on the “Programmability” of a visualization element. There you will find a list of the possible values and their effects.
Note
The variables, entered in the Color Variables dialog, in online mode will overwrite the static values given in the ‘Color’ category as well as corresponding values given by a structure variable.
In case of multiple definition of an element property consider the specific concerning according to which a value might be overwritten in online mode by another.
The parameters of the dialog:
Parameter | Description | Example of an entry | Example for using the variable in the program | corresponding component of structure VisualObjectType |
---|---|---|---|---|
Fillcolor: | fill color | “plc_prg.var_fillcol” | var_var_fillcol:=16#FF00FF -> fill color pink |
dwFillColor |
Fillcolor alarm: | fill color if the ‘Change color’ variable is TRUE ( Colors) | “plc_prg.var_fillcol_a” | var_fillcol_a:=16#FF00FF -> alarm fill color pink |
dwFillColorAlarm |
Framecolor: | frame color | “plc_prg.var_framecol” | var_framecol::=16#FF00FF -> frame color pink |
dwFrameColor |
Framecolor alarm: | frame color if the ‘Change color’ variable is TRUE ( Colors) | “plc_prg.var_framecol” | var_framecol:=16#FF00FF -> alarm frame color farbe pink |
dwFrameColorAlarm |
Fillflags: | The current inside color configuration can be activated (FALSE) resp. deactivated (TRUE) | “plc_prg.var_col_off” | var_col_off:=1 -> the color definition for the fill color will not be regarded, that for the frame remains valid |
dwFillFlags |
Frameflags: | Display of the frame (solid, dotted etc.) | “plc_prg.var_linetype” | var_linetype:=2; -> frame will be displayed as dotted line |
dwFrameFlags |
Dialog Box for Configuring Visualization Elements (Category Colorvariables):