Table of Contents

Reset Block with Acknowledgement

Full Name

Lib.Mervis.v1_0.ResetBlockWithAck

Required Project References

Description

A block used to generate reset and acknowledgement pulses based on input from I/O or HMI. Version 1.1 of the block is identical but includes error state handling!

Usage in ST

program test
    var
        reset: lib.mervis.v1_0.ResetBlockWithAck;
    end_var

    reset();
end_program

Inputs

Name Data TypeRetainMandatory Connection Meaning
HwResetInput bool No Yes Input for reset button from I/O
HwAckInput bool No No Input for acknowledgment button from I/O
Delay time No No Duration of the generated pulse
PulseCount int No No Number of pulses generated during Delay. Valid range is 1..20
CombinedAckAndReset bool No No If true, the acknowledgment pulse is generated simultaneously with reset pulses

Outputs

Name Data TypeMeaning
Out bool Reset output
Ack bool Acknowledgment output

Local Variables

Name Data TypeMeaning
SwReset.Inbool Variable for reset from HMI
SwAck.In bool Variable for acknowledgment from HMI

Detailed Function Description

The block is used to generate reset and acknowledgment pulses from buttons connected to I/O or from HMI. A rising edge on the HwResetInput or SwReset.In input generates PulseCount pulses on the Out output for the duration of Delay. Similarly, a rising edge on the HwAckInput or SwAck.In input generates PulseCount pulses on the Ack output if CombinedAckAndReset is set to false. Otherwise, acknowledgment pulses are generated simultaneously with reset pulses. The triggering inputs do not need to be returned to the inactive level; the block manages this automatically.