SEL / SEL_S - Selection of input

 

Depending on the value of the C (condition) input, this function selects one of its two inputs AT or AF and applies the related value to the SEL output.

If C = FALSE, the value at AF is applied at the SEL output. If C = TRUE, the value at AT is applied at the output OUT as shown in the following function table:

C input

AT input

AF input

SEL/SEL_S output

TRUE

Value AT

Value AF

Value AT

FALSE

Value AT

Value AF

Value AF

NOTE:

Although the SEL function supports all elementary data types that are available in the EcoStruxure Machine Expert - Safety, the inputs AT and AF as well as the SEL output must be connected to the same data type.

SEL

Parameter

Data types

Description

C

BOOL

Condition which input is to be applied to the SEL output

AT

ANY_ELEMENTARY

Value at the input is applied to the SEL output if C = TRUE

AF

ANY_ELEMENTARY

Value at the input is applied to the SEL output if C = FALSE

SEL

ANY_ELEMENTARY

Value at AT or AF, depending on C

SEL_S

Parameter

Data types

Description

C

SAFEBOOL

Condition which input is to be applied to the SEL output

AT

ANY_SAFEELEMENTARY

Value at the input is applied to the SEL output if C = TRUE

AF

ANY_SAFEELEMENTARY

Value at the input is applied to the SEL output if C = FALSE

SEL

ANY_SAFEELEMENTARY

Value at AT or AF, depending on C