L-force | plc designer – Lenze PLC Designer PLC Designer (R2-x) User Manual

Page 721

Advertising
background image

L-force | PLC Designer

PLC Designer Visualization



DMS 3.2 EN 02/2011 TD29

719

Component
(+Data type)

Effect

Example

(the Object Name "vis1" has been
defined for the element)

corresponding entries
in configuration
dialog:

bInvisible : BOOL; Element is visible /

invisible

vis1.visible:=TRUE;

(element is invisible)

- Cat. Color: No color
inside +

No frame color
- Cat. Colorvariables:

Fillcolor +
Framecolor

stTextDisplay :
STRING;

Text is displayed in
element

vis1.TextDisplay:='ON /
OFF';

element is inscribed with this text

- Cat. Text: entry at
'Content'

bToggleColor :
BOOL;

color change when
toggling between

TRUE and FALSE

vis1.bToggleColor:=alarm_va
r;

(As soon as alarm_var gets TRUE, the
element gets the color defined via the

components dwFillColorAlarm,
dwFrameColorAlarm resp. via the
settings in category 'Colorvariables' or
'Color'.

- Cat. Input: Toggle
variable +

- Cat. Variables:
Change color

bInputDisabled:
BOOL;

if FALSE: Inputs in
category 'Input' are
ignored

vis1.bInputDisabled:=FALSE;

(no input is possible for this elementt)

- Cat. Variables:
'Disable Input'

stTooltipDisplay:S
TRING;

Text of the tooltip

vis1.stTooltipDisplay:='Swi
tch for .....';

- Cat. Text for Tooltip:
Entry in
'Content:'

dwTextFlags:DW
ORD;

Text position:

1 left justified
2 right justified:
4 centered

horizontally
8 top
10 bottom
20 centered

vertically

Note: Always set a
horizontal and a
vertical position
(addition of values)!

vis1.dwTextFlags:=24;

(Text will be placed in the center of
the element (4 + 20)

- Cat. Text: Horizontal
and
Vertical options
- Cat. Textvariables:

Textflags

dwTextColor :

DWORD;

Text color

(definition of colors
see subsequent to
this table)

vis1.dwTextColor :=
16#00FF0000;

(Text is blue-colored)

- Cat. Text: Font |

Color
- Cat. Textvariables:

Textcolor

nFontHeight : INT; Font height in Pixel.

should be in range

10-96

vis1.nFontHeight:=16;

(Text height is 16 pt)

- Cat. Text: Font |
Grad'

- Cat. Textvariables:

Font heigth

Advertising