Connection to a binary process variable

Some controls can only access a binary variable. Only the value trueor false can be processed here.

A binary process variable can contain the value 0 or false or 1 or true. In many cases, this is also interpreted as off or on.

The following properties are available for the connection to a binary process variable in the "Variable" category in the Properties window:

BitNumber

If the process variable is of data type VT_BOOL or VT_BIT, this property should contain the value 0. For the other data types listed below, this property specifies the number of the desired bit from the integer process variable.

VariableName

The full name of a process variable is entered in this property. This can be of the data typeVT_I1, VT_I2, VT_I4, VT_UI1, VT_UI2, VT_UI4, VT_BOOL or VT_BIT.

Example:

Feature

Integer variable

Boolean variable

VariableName

Ch1.DataTypes.DWORD

Ch1.DataTypes.BOOL

BitNumber

2

0

You can use the button next to the property to open the Select variable dialogue in which you can select the desired variable.

Affects these controls:

Checkbox, Image, Label, Key, RadioButton, Switch, ToggleButton