#Signal

Top  Previous  Next

The #Signalobject is used to display different states. e.g. Off, On

 

Parameters

Object

Column A

M/O

Default

Description

#Signal

M


Display of different states

Text/File

Column B

M/O

Default

Description


 


If no text or image is specified in the Signal object, its area is shown with the background color corresponding to state 0,1,2,....

<text0>,<text1>,...

O


Text strings for states 0,1,... separated by ‘,’. Also multiple-line

 

Positioning of text:

Text is centered, however, the option Pos=<alignment> also allows horizontal alignment.

 

signal_0signal_1

<image0>,<image1>,...

O


Name of image files for states 0,1, separated by ‘,’.

 

Positioning of images:

If a border is defined, the display of the images is centered.

If no border is defined, the images are positioned in relation to the top left.

 

signal_icon0signal_icon1

 

Important!

When images are defined, there should be no blanks between the ‘,’ as this will otherwise be interpreted as a file name!

Font

C Font column

M/O

Default

Description

<Fontname>.FNT

O

Current font

Font for displaying text

X, Y, DX, DY

Columns D-G

M/O

Default

Description

Integer constants

Variable of type INT

O

Autom. positioning

Position and dimension

Color

Column H

M/O

Default

Description

Color0,Color1,...

O

Current foreground color

Font color of the text for states 0,1,...

BackColor

Column I

M/O

Default

Description

Color0,Color1,...

O

Current background color

Background color of the text for states 0,1,...

Format

Column J

M/O

Default

Description

Format

O

No frame

Type of frame

Limit1

Column L

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Min

Lower limit value

...Numerical constant

...Variable of type VarType

Limit2

Column M

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Max

Upper limit value

Numerical constant

Variable of type VarType

ActionLimit1, ActionLimit2

Columns N,O

M/O

Default

Description

<action>

O


The standard LimitActions are available.

VarValue

Column P

M/O

Default

Description

<variable>

O


Value of the signal

Default behavior if no limits and limit actions have been defined:

If the variable contains a value > (the number of defined states - 1) or a value < 0, the first state (value 0) is displayed.

 

VarType

Column Q

M/O

Default

Description

BOOL

BYTE

SINT

SUINT

WORD

INT

DINT

DWORD

LINT

LWORD

REAL

O


All numerical data types are supported.

 

STRING

WSTRING

O


The string is interpreted as filepath to a image file. If there is no valid image-file the sting is displayed.

VarState

Column R

M/O

Default

Description

<variable>

O


See VarState column

Option

Column S

M/O

Default

Description

Pos={Center¦Left¦Right}

O

Pos=Left

Horizontal text, image alignment

 

Pos=Center

centered

Pos=Left

left aligned

Pos =Right

right aligned

 

The vertical alignment is centered per default

VPos={Top¦Bottom}

O

 

Vertical alignment of text or image

 

VPos=Top

top aligned

VPos=Bottom

bottom aligned



 

Switch=<range0>:<range1>:...

 

 

The Switch option allows to enumerate value ranges.

 

 

range0  -> 0

range1  -> 1

...

 

If VarValue is matching the first range it is taken as 0, if VarValue is matching the second range it is taken as 1,...

The ranges are separated by a colon.

 

Ranges can be defined as follows:

<n


All values less than <n>

>n


All values greater than <n>

i..n


All values greater or equal than <i> and less or equal than <n>

n


Exactly <n>




 
Sample.:

Switch=<1:1:2..5:>5

 

Range

Index

Description

<1

0

all less than 1

1

1

1

2..5

2

from 2 to 5

> 5

3

greater 5




 

Transparency=<color>

O

 

If an image file was configured, the specified color is interpreted as transparent.

AnimationDelay=<delay>

O

 

Defines the animation speed in milliseconds. As soon as VarValue is greater than 0, the variable is incremented by one every <delay> milliseconds. If the maximum is reached, the value is reset to one.

This enables animations to be implemented very easily by visualizing, for example, the running of a sequence of images, such as a rotating pump or similar, when the status is activated.

 

VarStateOnOffInverted

O

 

Inverts the On / Off functionality of the VarState Variable:

 

VarState = 0 -> Off

VarState = 1 -> On

 

DisabledPaint={Off¦On}

O

On

If the option DisabledPaint=Off  is set, disabled signals will be displayed normal  (grayed out).

Same behavior as with EPAM3!

Init, Exit

Columns U, V

M/O

Default

Description

SetVar=<value>

O


Sets VarVal to <Value>

 

 

Icon-Hinweis        Triggering a screen page change in the PLC

The signal object can also be used to trigger screen page changes on the basis of variable values by defining limit values (Limit1/2) and the action ‘#Page=<name>’. In this case, the Text/File column stays empty. The object must be defined globally in order for this screen page change to be executed at any location.

See also Global objects

 

Difference to EPAM3

The format Frame=<x> is no longer supported, and is replaced with Backcolor=transparent.