Analog function blocks
The “Analog Latch” function block corresponds to a 2-channel sample-and-hold module. This means that this block can store two analog values.
Saving is controlled by the Latch Enable (LE) signal. If Latch Enable signal is LOW, the states at the inputs In1 and In2 are ignored. The currently saved states of the inputs are retained. If Latch Enable signal is HIGH, the block takes over the states from the inputs In1 and In2.
The output of the saved states is controlled via the Output Enable (!OE) signal. This signal is low-active. If the Output Enable signal is LOW, the saved states are output at the outputs Out1 and Out2. If the Output Enable signal is HIGH, the outputs Out1 and Out2 are set to the state 0. It is assumed that the state 0 lies between the minimum and the maximum of the respective output. Alternatively, the specified minimum or maximum that comes closest to state 0 is output.
The analog signals can be parameterized with regard to minima, maxima and their units. The names of the signals and the function block can be changed.
Explaination of the example.