ValidSelectPrio Function Block

The Valid Select Prio function block looks for a valid value in four inputs. If an input contains a valid value (less than or greater than zero), the value is output on the "Out" line. If any of the numerous inputs has a valid value, the value from the input with the highest priority is output on "Out" (A has the highest priority and D has the lowest priority).

Figure 1: ValidSelectPrio Function Block

Figure 2: ValidSelectPrio - Property Sheet

 

Figure 3: ValidSelectPrio Logic Diagram

Inputs

Input Name

Description

In A

If In A has a valid value (less or greater than "null"), Out = In A.

In A has the highest priority.

In B

If In A has an invalid value ("null"), but In B has a valid value (less or greater than "null"), Out = In B.

In C

If In A and In B have an invalid value ("null"), but In C has a valid value (less or greater than "null"), Out = In C.

In D

If In A, In B and In C have an invalid value ("null"), but In D has a valid value (less or greater than "null"), Out = In D.

Default

(In & Par)

If all Inputs have an invalid value ("null"), Out = Default.

Table 1: Inputs of ValidSelectPrio Function

Output

Output Name

Description

Out

Output = Highest priority input that is valid.

Table 2: Output of ValidSelectPrio Function

Parameter

Parameter Name

Description

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.

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: Parameter of ValidSelectPrio Function

Examples  

       If In A to In D = valid the corresponding Input is set to output.

       If more than one Select input is valid, In A has highest priority In D will have Low poriority. Accordingly, output is set. If all the values are "invalid", Default value( Input or Parameter) is set to output.

Figure 4: Example-Function Block and Property Sheet

Refer to General Description for general information about IRMN4 Function Blocks.