BOOL Boolean (bit)
Also called: bit, boolean, binary, digital, on/off
A single bit: 0 or 1, false or true.
What it does
The basic ladder type. A contact reads a BOOL, a coil writes one. The PLC's on/off inputs and outputs are BOOLs.
When to use it
Buttons, sensors, lamps, motors, internal bits (run memories, steps), status bits of an instance (T1.Q, C1.DN…).
| Size | 1 bit |
|---|---|
| Possible values | 0 / 1 |
| Starting value | FALSE / 0 |
| Constants (examples) | TRUE or FALSE / 1 or 0 |
| Size | 1 bit |
|---|---|
| Possible values | 0 / 1 |
| Starting value | FALSE |
| Constants (examples) | TRUE or FALSE |
| Size | 1 bit |
|---|---|
| Possible values | 0 / 1 |
| Starting value | 0 |
| Constants (examples) | 1 or 0 |
Behaviour in detail
- Written TRUE / FALSE in the European style, 1 / 0 in the American style: same value.
- A BOOL with no initial value starts at 0.
- A normal coil rewrites its bit every scan; a Set / Reset coil (OTL / OTU) keeps it.
European (IEC) and American styles
Same type on both sides (BOOL). Only constants are written differently: TRUE / FALSE (European), 1 / 0 (American).