Maximum value comparison with output of case
Contents

1.Description

The module compares 4 input values with weighting option (if weighting is not to be used, the "Weighting" inputs must not be assigned) and outputs the maximum value of the 4 values and the maximum value following weighting on the outputs. In addition, the outputs 1-4 provide information on which input has the highest value. If several values are identical, then a 1 is sent to each of the related outputs.

2.Inputs

No.NameInitialisationDescription
1Value 1 (2 bytes)0
Value 1 (2 bytes)
2Weighting Input 11
Weighting 1 (2 bytes)
3Value 2 (2 bytes)0
Value 2 (2 bytes)
4Weighting Input 21
Weighting 2 (2 bytes)
5Value 3 (2 bytes)0
Value 3 (2 bytes)
6Weighting Input 31
Weighting 3 (2 bytes)
7Value 4 (2 bytes)0
Value 4 (2 bytes)
8Weighting Input 41
Weighting 4 (2 bytes)

3.Outputs

No.NameInitialisationSBCDescription
1Output 10s
If Input 1 >=Input 2 and Input 1 > =Input 3 and Input 1 > =Input 4, then a 1 is sent
2Output 20s
If Input 2 >=Input 1 and Input 2 >=Input 3 and Input 2 >=Input 4, then a 1 is sent
3Output 30s
If Input 3 >=Input 1 and Input 3 >=Input 2 and Input 3 >=Input 4, then a 1 is sent
4Output 40s
If Input 4 >=Input 1 and Input 4 >=Input 2 and Input 4 >=Input 3, then a 1 is sent
5Maximum value after weighting0s
Maximum value of the 4 input values after weighting
6Maximum value without weighting0s
Maximum value of the 4 input values without weighting
s = send, sbc = send by change

4.Other

Recalculation during start:No
Module is retentive:No
Internal designation:19041
Category:Comparator

5.Similar functions

Comparator (10x)