BOOL¶
Boolean value: TRUE or FALSE.
Size |
1 bit |
Values |
|
Default |
|
IEC 61131-3 |
Section 2.3.1 |
Support |
Supported |
Literals¶
TRUE
FALSE
BOOL#1
BOOL#0
Example¶
sensor := TRUE;
enabled := TRUE;
run := sensor AND enabled; (* run = TRUE *)
See Also¶
Logical Operators — AND, OR, XOR, NOT