Three-State Boolean Input

Lib.Mervis.v1_0.ThreeStateBool

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.

  • Lib.Mervis
program test
    var
        inp: lib.mervis.v1_0.ThreeStateBool;
    end_var

    inp();
end_program
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
Name Data TypeMeaning
Outputbool Output
  • © Energocentrum Plus, s.r.o. 2017 - 2024