[r2]: / szl4p3-prj,szl4p3,CDS / Protection / FB_Prot_Base / HandleBlock / svnobj  Maximize  Restore  History

Download this file

17 lines (16 with data), 4.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
// 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