Aggregation Function Block

TThe aggregation function block brings together multiple inputs into a single output. The methods, like average calculation min or max selection, can be set under the parameter operation. It is possible to change the operation without changing the function block or the connections.

Figure 1: Aggregation - Wire Sheet

Figure 2: Aggregation - Property Sheet

In H has highest priority, if 2 inputs are same.

Figure 3: Aggregation -Logic Diagram

Input

Input Name

Description

In A

(In & Par)

The value of the In A is used to perform the desired aggregation. This input is also available as a parameter, which can be helpful for min or max arbitration.

In B-In G

The values of the inputs B - G are used to perform the desired aggregation.

In H

(In & Par)

The value of the input H is used to perform the desired aggregation. This input is also available as a parameter, which can be helpful for min or max arbitration.

Table 1: Inputs of Aggregation function

Output

Output Name

Description

Out

The function block combines several inputs in one output. The method for this can be set under the parameter Operation, i.e. average calculation, min/max selection. The Operation can be changed without changing the function block connections.

No of Inputs

Outputs the amount of inputs that are considered for the calculation of Out. If Out has the value "null", then No of Inputs also becomes "null", no calculation is performed.

Table 2: Outputs of Aggregation function

Parameter

Parameter Name

Description

In A Par

(In & Par)

If In A is "null", In H Par is used as parameter. This is used for a minimum or maximum arbitration.

In A Par is set to "null", it is ignored because the parameter Handle Inv is set to Ignore Inputs with "null".

In H Par

(In & Par)

If In H is "null", In H Par is used as parameter. This is used for a minimum or maximum arbitration.

In H Par is set to "null", it is ignored because the parameter Handle Inv is set to Ignore Inputs with "null".

Operation

The function block brings several inputs together on one output. The type of combination is set via this parameter. Example for Average: 3 different temperature sensors are connected to the inputs A - C and the average value is output at the Out. The output No of Inputs = 3.

There are three operations: Average, Maximum, and Minimum.

  • Average:The function block calculates the average of the inputs.
  • Maximum:The function block outputs the maximum of the inputs.
  • Minimum:The function block outputs the minimum of the inputs.

Handle Inv

If this option is set to "false", all inputs with "null" value is ignored. This is the default value.

True: If any Input is "null", then Out = "null". Therefore, set all inputs to a meaningful value (e.g. 0 or 100)

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 Aggregation function


Example

1.       Handle Inv is "false"

Figure 4: Aggregation Example with Handle Inv = "false"

2.       Handle Inv is "true"

Figure 5: Aggregation Example with Handle Inv = "true"

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