// return if no block class is defined
IF tsFault.teBlockClass = TE_PROT_BLOCK.None THEN
RETURN;
END_IF
// check status of reset signal
IF tsProt.tuResetFaultBlock.ai[tsFault.teBlockClass]<=0 THEN
iKReset := -1;
ELSE
iKReset := 1;
IF tsProt.tuBlockEdge.ai[tsFault.teBlockClass] = tsFault.iFaultID THEN
tsProt.tuBlockEdge.ai[tsFault.teBlockClass] := 0;
// check if fault triggered edge detection
IF bFault THEN
// set fault in order to check for reset
// an active fault edge detection has to update the ID (including the reset information)
IF NOT _bFaultOld THEN