#RadioButton

Top  Previous  Next

The #RadioButton object enables one of several options to be selected.

 

Example

radiobutton_1

 

The #RadioButton object compares the current object value with the setpoint of the SetVar=<x> action. If the value is the same as the setpoint, the corresponding RadioButton is activated or otherwise stays inactive. If the RadioButton is actuated, the corresponding setpoint is set.

Several #RadioButton objects can be defined in order to select several elements. The individual selection elements are associated by assigning the same variable.

 

Parameters

Object

Column A

M/O

Default

Description

#RadioButton

M


Selection of one of several options

Text/File

Column B

M/O

Default

Description

<text0>,<text1>

M/O


Text strings for states 0 (inactive),1 (active) separated by ‘,’. Multi-line texts can also be defined.

<image0>,<image1>

O/M


Name of image files for states 0 (inactive),1 (active) separated by ‘,’

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 (inactive),1 (active)

BackColor

Column I

M/O

Default

Description

Color0,Color1

O

Current background color

Background color of the text for states 0 (inactive),1 (active)

Format

Column J

M/O

Default

Description

Format

O

No frame

Type of frame

Action

Column K

M/O

Default

Description

SetVar=<x>

M


When the #RadioButton object is actuated, the variable value is set. If the current variable value is the same as the value of SetVar=<x>, the RadioButton is active (state 1), otherwise inactive (state 0)

#Page=<name>

O


The page <name> is opened.

Close

O


Close highest window (=last window opened)

Close=<name>

O


Close window <name>

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 RadioButton

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

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 alignment of text or image

 

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



 

Pos=Left

 

 

Left = left-justified

Pos=Right

 

 

Right = right-justified

Transparency=<color>

O

 

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

PWL=<level>

O

 

Required password level for enabling (see #Password).

NoBeep

O

 

Suppresses the Beep signal

VarStateOnOffInverted

O

 

Inverts the On / Off functionality of the VarState Variable:

 

VarState = 0 -> Off

VarState = 1 -> On

 

Init, Exit

Columns U, V

M/O

Default

Description

<action>

O


The same actions are available as described for the Action parameter