Three-State Boolean Input
Full Name
Lib.Mervis.v1_0.ThreeStateBool
Description
A helper block used to implement a BOOL input with the ability to indicate that the input is not connected in the software - in this case, it outputs the value of UnconnectedValue.
Required Project References
- Lib.Mervis
Usage in ST
program test
var
inp: lib.mervis.v1_0.ThreeStateBool;
end_var
inp();
end_program
Inputs
| Name | Data Type | Retain | Mandatory Connection | Meaning |
|---|---|---|---|---|
| Input | usint | No | Yes | Input - can directly connect a BOOL value. It can have the following values: 0 - Input inactive 1 - Input active 2 - Input not connected (default value) |
| UnconnectedValue | bool | No | No | Output value when Input = 2 |
Outputs
| Name | Data Type | Meaning |
| Output | bool | Output |
