Table of Contents

Edge Coupler Block for Rising Edge Detection

Full Name

Lib.Mervis.v1_0.EdgeCoupler

Required Project References

Description

A helper block used for detecting a rising edge coming from multiple sources.

Usage in ST

program test
    var
        edgeCoupler: lib.mervis.v1_0.EdgeCoupler;
    end_var

    edgeCoupler();
end_program

Inputs

Name Data TypeRetainMandatory ConnectionMeaning
Input1bool No No Input value
Input2bool No No Input value
Input3bool No No Input value
Input4bool No No Input value

Outputs

Name Data TypeMeaning
Outputbool Output

Detailed Function Description

The block is used for detecting a rising edge that can be generated from multiple sources. It also handles the case where an input remains “stuck” at the active (=true) level. For proper operation, ensure that there is at least one computation cycle gap between individual edges on the inputs.