[ENSEL_R] Enable selector real

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

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

Functioning

To interconnect multiple real values, ENSEL_MS routes one of the 25 multistate 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 real signal is available at the corresponding input.
  • The related values input [Val1]…[Val25] is enabled by the corresponding enabling pin [EN1]…[En25] = 1.
  • If multiple inputs [Val1]...[Val25] are enabled, 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

Real

0.0

DefVal

Default value

Real

0.0

 

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

Real

0.0

InNr

Input number

Integer

0