-

SEL / SEL_S

Type Function

Available as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters.
Description Selects the value connected to the input IN0 or IN1 and writes it to the output depending on the value connected to the input G.

  • If G = FALSE, the value of input IN0 is written to OUT.
  • If G = TRUE, the value of input IN1 is written to OUT.
Notes
  • IN0, IN1 and OUT must have the same data type.
  • The function is an overloaded function. It can operate on various input data types.
  • The input G can be negated.

    Note: The negation of formal parameters is not supported in safety-related code (SNOLD).

Parameters Inputs

G

IN0

IN1

Output

OUT
Error behaviorError behavior
Additional information EN/ENO behavior