[ENSEL_BO] Enable selector boolean (EnSwi and ValSwi)

Function block ENSEL_BO allows for selectively interconnecting 25 binary values (1 of 25) based on input sequence.

ENSEL_BO as a central function block allows for selective interconnection of one of 25 binary values (1 of 25). The pin with an enabled input is switched first.

Functioning

To interconnect multiple binary values to a particular priority, block ENSEL_BO routes one of the 25 binary inputs [Val1]…[Val25] to output [Value]. The pin with the lowest number is used first and the pin with an enabled input is switched first. If no input is enabled, the output serves as predefined value.

Interconnection conditions

  • A binary signal is available at the corresponding input.
  • The related input [Val1]…[Val25] is enabled by the corresponding enabling pin [EN1]…[En25] = 1.
  • If multiple inputs [Val1]...[Val25] are enabled [En1]...[En25], the pin with the lowest number is switched to output [Value].
  • If all enable pins [En1]…[En25] = 0, output [Value] = [DefVal].
  • If output [Value] has a valid value, output [Enable] = 1.
  • Pin [InNr] contains an integer signal according to the number of the input [Val] routed to output [Value].
Pins

Input

Description

Data type

Default value
Value range

En1En25

Enable 1Enable 25

The value with the highest priority (lowest number) is transmitted to output [Value].

Boolean

0

0 - The corresponding input [Val1]…[Val25] is not enabled.
1 - The related input [Val1]…[Val25] is enabled by the corresponding enabling pin [EN1]…[En25].

Val1Val25

Value 1Value 25

Boolean

0

0 - Off
1 - On

DefVal

Default value

Boolean

0

0 - Off
1 - On

 

Output

Description

Data type

Default value
Value range

Enable

Enable

Boolean

0

0 - No valid value available at the output [Value].
1 - Valid value available at the output [Value].

Value

Value

Boolean

0

0 - Off
1 - On

InNr

Input number

Integer

0