====== Reset Block (v1.0) ====== {{:cs:mervis-ide:35-help:resetblock.png}} ==== Full Name ==== Lib.Mervis.v1_0.ResetBlock ==== Required Project References ==== * Lib.Mervis ===== Description ===== A block used to generate reset 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.ResetBlock; end_var reset(); end_program ===== Inputs ===== |Name |Data Type|Retain|Mandatory Connection |Meaning| |HwResetInput |bool |No |Yes |Input for reset 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| | ===== Outputs ===== |Name |Data Type|Meaning| |Out |bool |Output| ===== Local Variables ===== |Name |Data Type|Meaning| |SwReset.In |bool |Variable for reset from HMI| ===== Detailed Function Description ===== The block is used to generate reset pulses from a reset button 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//. The triggering inputs do not need to be returned to the inactive level; the block manages this automatically.