See Variables.
A boolean variable has the value true (represented by the literal 1) or false (represented by the literal 0).
The update expression of a boolean variable will be evaluated as a boolean expression. Boolean variables that receive their values from an update expression may be used in falling edge and rising edge event expression in the same way as Digital Inputs.
Common Methods
Variable Methods
Note: Edit is chosen automatically instead of showing a context menu with only one choice.
Edit: Opens an edit dialog for the variable.
Initial value:
The initial value of the variable. An empty field means no initial value. (Default: <empty>)
Constant:
If selected the variable will be considered a constant which may not be written to.
The only way to change a constant variable is through the initial value.
(Default: Unchecked)
Automatic Update?:
If selected the variable will automatically receive a new value in the
beginning of every scan cycle through an evaluation of the update expression.
Automatic Update only works for non-constant variables.
Automatic Update can be enabled and disabled during execution, but enabling it on will
only work if it was enabled during the last compilation.
(Default: Unchecked)
Update expression:
The automatic update expression for the variable. (Default: <empty>)