MUX_UDINT block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
more possible than defined in IEC-standard but also:
currently restricted |
Graphical interface |
|
Available since |
|
Functionality
Depending on the input K
, the block selects one of the values connected at the other inputs.
If value 0
is connected at input K
, the block returns the value connected at input IN0
. Value 1
for input K
has the block return the value connected at input IN1
, value 2 has the value of input IN2
returned etc.
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
selector |
|
|
1st value |
|
|
|
2nd value |
|
... (extensible until) |
|
||
|
|
16th value |
|
Return value: |
– |
|
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Internal error diagnostic for block
The block checks the value connected to input K
before it is executed.
If the value for K
is > the highest connected input, the output ENO
of the block is set to value FALSE
(or an equivalent) and the block returns the value 0
.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.