Value Memory - Real

Lib.Mervis.v1_0.SimpleLatch

  • Lib.Mervis

A helper block used to store a snapshot of a value.

program test
    var
        latch: lib.mervis.v1_0.SimpleLatch;
    end_var

    latch();
end_program
Name Data TypeRetainMandatory Connection Meaning
Input real No Yes Input value
Clk bool No Yes Signal to store value
Name Data TypeMeaning
Output real Output

The block stores the current value of the Input on the rising edge of the Clk input. This value is then provided on the Output.

  • © Energocentrum Plus, s.r.o. 2017 - 2024