<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
  <POU Name="FB_SAFE_CONTROL" Id="{9647e865-a09e-43b6-a6c7-7d358ed96945}" SpecialFunc="None">
    <Declaration><![CDATA[FUNCTION_BLOCK FB_SAFE_CONTROL
VAR_INPUT
	ManErrAck										:	BOOL;

	// CONTROL
	Run										AT%Q*	:	BOOL := TRUE;
	ErrAck									AT%Q*	:	BOOL;
	Restart									AT%Q*	:	BOOL;

END_VAR
VAR_OUTPUT
	ComErr									AT%I*	:	BOOL;
	OtherErr								AT%I*	:	BOOL;
	InRun									AT%I*	:	BOOL;

END_VAR
VAR
	_ton20ms										:	TON;
END_VAR
]]></Declaration>
    <Implementation>
      <ST><![CDATA[_ton20ms(IN:= ManErrAck, PT:= T#20MS, Q=> , ET=> );

IF _ton20ms.Q THEN 
	ManErrAck := FALSE;
END_IF

IF NOT ManErrAck
THEN 
	IF OtherErr OR ComErr 
	THEN  
		ErrAck := TRUE;
	ELSE
		ErrAck := FALSE;
	END_IF
ELSE
	ErrAck := ManErrAck;
END_IF]]></ST>
    </Implementation>
    <LineIds Name="FB_SAFE_CONTROL">
      <LineId Id="37" Count="0" />
      <LineId Id="41" Count="0" />
      <LineId Id="30" Count="0" />
      <LineId Id="32" Count="1" />
      <LineId Id="31" Count="0" />
      <LineId Id="22" Count="0" />
      <LineId Id="39" Count="1" />
      <LineId Id="24" Count="3" />
      <LineId Id="9" Count="0" />
      <LineId Id="43" Count="1" />
      <LineId Id="42" Count="0" />
    </LineIds>
  </POU>
</TcPlcObject>