Short description
The Max/Min function block records the maximum or minimum value.
|
Connection |
Description |
|
Input En |
The function of input En (Enable) depends on the settings of parameter Mode and the selection of check box "when En = 0, reset Max/Min". |
|
Input S1 |
This input is enabled when you set Mode =2: A positive transition (0 to 1) at input S1 sets the output AQ to the maximum value. A negative transition (1 to 0) at input S1 sets the output AQ to the minimum value. |
|
Input Ax |
Input Ax is one of the following analog signals:
|
|
Parameter |
Mode Possible settings: 0, 1, 2, 3 Mode = 0: AQ = Min Mode = 1: AQ = Max Mode = 2 and S1= 0 (low): AQ = Min Mode = 2 and S1= 1 (high): AQ = Max Mode = 3 or a block value is referenced: AQ = Ax |
|
Output AQ |
AQ outputs a minimum, maximum, or actual value depending on the inputs, or is reset to 0 if configured to do so when function is disabled |
|
* AI1 to AI8: 0 to 10 V corresponds with 0 to 1000 (internal value). |
|
Parameter Mode
You can set the values for parameter Mode based on the actual values of another already-programmed function:
Analog comparator: Ax - Ay
Analog threshold trigger: Ax
Analog amplifier: Ax
Analog multiplexer: AQ
Analog ramp: AQ
Mathematic instruction: AQ
Up/Down counter: Cnt
Threshold trigger: Fre
Max/Min: Ax
PI controller: AQ
Analog filter (0BA7 only): AQ
Average value (0BA7 only): AQ
On-delay: Ta
Off-delay: Ta
On-/Off-delay: Ta
Retentative on-delay: Ta
Wiping relay (pulse output): Ta
Edge triggered wiping relay: Ta
Asynchronous pulse generator: Ta
Stairway lighting switch: Ta
Multiple functions switch: Ta
Stopwatch (0BA7 only): AQ
You can select the required function by the block number.
Timing diagram
*) If you select the check box "when En = 0, reset Max/Min"
Description of the function
If you select the check box "when Enable = 0, reset Max/Min":
Enable = 0: The function sets the AQ value to 0.
Enable = 1: The function outputs a value at AQ, depending on the settings of Mode and S1.
If you do not select the check box "when Enable = 0, reset Max/Min":
Enable = 0: The function holds the value of AQ at the current value.
Enable = 1: The function outputs a value at AQ, depending on the settings of Mode and S1.
Mode = 0: The function sets AQ to the minimum value
Mode = 1: The function sets AQ to the maximum value
Mode = 2 and S1 = 0: The function sets AQ to the minimum value
Mode = 2 and S1 = 1: The function sets AQ to the maximum value
Mode = 3 or a block value is referenced: The function outputs actual analog input value.