NumericSelect Function Block

The Numeric Select function block chooses one of the six output values from the six input values. If the value in the selection is incorrect, the default input is used. If the six inputs are insufficient, the function can be extended to more inputs using an offset.

 

Figure 1: NumericSelect - Function Block

Figure 2: NumericSelect - Property Sheet

When (Offset) selects one of the 6 inputs, the output equals the value on the input (Offset). Otherwise, the output equals the value on the default input.

Figure 3: NumericSelect - Logic Diagram

Example for Enum Conversion:

WallmoduleA - OutSetptMd > PidA - Operation3, 4, 5 > 1, 3, 2.

Figure 4: Example for Enum Conversion

Output = Position determined by the value (X - Offset).

Input

Input Name

Description

Select

This input is used to select which of the inputs In 1 - In 6 is used as output.

If the value is < 1+Offset or > 6+Offset, the input Default is assigned to the output.

Default

(In & Par)

If the Select < 1 + Offset or > 6 + Offset, Out = Default.

In 1

(In & Par)

This input is used as output value, if Select = 1 + Offset.

In 2

(In & Par)

This input is used as output value, if Select = 2 + Offset.

In 3

(In & Par)

This input is used as output value, if Select = 3 + Offset.

In 4

(In & Par)

This input is used as output value, if Select = 4 + Offset.

In 5

(In & Par)

This input is used as output value, if Select = 5 + Offset.

In 6

(In & Par)

This input is used as output value, if Select = 6 + Offset.

Table 1: Inputs of NumericSelect Function

 

Output

Output Name

Description

Out

If the Select < 1 + Offset or > 6 + Offset, Out = Default.

If Select = 1 + Offset, Out = In 1.

If Select = 2 + Offset, Out = In 2.

If Select = 3 + Offset, Out = In 3.

If Select = 4 + Offset, Out = In 4.

If Select = 5 + Offset, Out = In 5.

If Select = 6 + Offset, Out = In 6.

Table 2: Output of NumericSelect Function

Parameters

Parameter Name

Description

Offset

The offset is used for extension, if the number of inputs 1 - 6 is not sufficient.

Default Par

(In & Par)

If Default is "null", Default Par is used as parameter.

In Default Par is set to "nan". In this case, it is treated like invalid.

In1 Par

(In & Par)

If In1 is "null", In1 Par is used as parameter.

In1 Par is set to "nan". In this case, it is treated like invalid.

In2 Par

(In & Par)

If In2 is "null", In2 Par is used as parameter.

In2 Par is set to "nan". In this case, it is treated like invalid.

In3 Par

(In & Par)

If In3 is "null", In3 Par is used as parameter.

In3 Par is set to "nan". In this case, it is treated like invalid.

In4 Par

(In & Par)

If In4 is "null", In4 Par is used as parameter.

In4 Par is set to "nan". In this case, it is treated like invalid.

In5 Par

(In & Par)

If In5 is "null", In5 Par is used as parameter.

In5 Par is set to "nan". In this case, it is treated like invalid.

In6 Par

(In & Par)

If In6 is "null", In6 Par is used as parameter.

In6 Par is set to "nan". In this case, it is treated like invalid.

Out Save

Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart.

Out: To enable or disable the Out feature.

Table 3: Parameters of NumericSelect Function

Examples  

If the Select value = In1 to In6, same In1 to In6 is set to output. If Select value is "invalid", then default value is set to output.

Figure 5: NumericSelect Function Block and Property Sheet

Refer to General for general information about IRMN4 Function Blocks.