Short description
The Max/Min function block records the maximum or minimum value.
LOGO! 9 and later versions support two data types: integer (16-bit) and float (32-bit).
|
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 (integer or float):
|
|
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 |
|
1 If the data type of Ax is integer and the data type of this FB is configured as float, LSC will convert Ax into 32-bit receivable float data. 2 If the data type of Ax is float and the data type of this FB is configured as integer, LSC will cut off the decimal numbers of Ax and convert it into 16-bit receivable integer data. 3 AI1 to AI16: 0 to 10 V corresponds with 0 to 1000, 0 to 4095 or 0 to 10000 (internal value). 4 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
Retentive 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
For the 0BA8 and later version devices, you can additionally use the actual values of the following already-programmed functions:
Float/Integer converter: eAq
Integer/Float converter: eAq
For the LOGO! 9 and later version devices, you can additionally use the actual values of the following already-programmed functions:
Float calculation instruction: 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.