<FBType Name="DetectorFBT______" Comment="Basic Function Block">
	<Identification Standard="61499-2" Description=""/>
	<CompilerInfo header="" classdef=""/>
	<InterfaceList>
		<InputVars>
      <VarDeclaration Name="color" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
      <VarDeclaration Name="material" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
      <VarDeclaration Name="height" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
    </InputVars>
		<OutputVars/>
		<EventInputs>
      <Event Name="upCheck" Type="" Comment="Normal Execution Request">
        <With Var="height"/>
      </Event>
      <Event Name="downCheck" Type="" Comment="">
        <With Var="color"/>
        <With Var="material"/>
      </Event>
      <Event Name="pieceInPlace" Type="" Comment=""/>
    </EventInputs>
		<EventOutputs>
      <Event Name="downCheckPassed" Type="" Comment="Execution Confirmation"/>
      <Event Name="downCheckFailed" Type="" Comment=""/>
      <Event Name="upCheckPassed" Type="" Comment=""/>
      <Event Name="upCheckFailed" Type="" Comment=""/>
      <Event Name="ready4Check" Type="" Comment=""/>
    </EventOutputs>
	</InterfaceList>
	<Service/>
	<BasicFB>
		<InternalVars>
      <VarDeclaration Name="color" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
      <VarDeclaration Name="material" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
      <VarDeclaration Name="height" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
    </InternalVars>
		<ECC>
      <ECState Name="START" Comment="" x="1458.7367" y="694.0767"/>
      <ECState Name="READY4CHECK" Comment="" x="1511.6747" y="1558.7307">
        <ECAction Algorithm="" Output="ready4Check"/>
      </ECState>
      <ECState Name="UP_CHECK" Comment="" x="617.6107" y="1882.2407"/>
      <ECState Name="UP_CHECK_PASS" Comment="" x="341.1567" y="2205.7507">
        <ECAction Algorithm="" Output="upCheckPassed"/>
      </ECState>
      <ECState Name="UP_CHECK_FAIL" Comment="" x="558.7907" y="2599.8447">
        <ECAction Algorithm="" Output="upCheckFailed"/>
      </ECState>
      <ECState Name="DOWN_CHECK_PASS" Comment="" x="2499.8507" y="2346.9187">
        <ECAction Algorithm="" Output="downCheckPassed"/>
      </ECState>
      <ECState Name="DOWN_CHECK" Comment="" x="2164.5767" y="1876.3587"/>
      <ECState Name="DOWN_CHECK_FAIL" Comment="" x="2282.2167" y="2664.5467">
        <ECAction Algorithm="" Output="upCheckFailed"/>
      </ECState>
      <ECTransition Source="READY4CHECK" Destination="UP_CHECK" Condition="upCheck" x="1070.5247" y="1694.0167"/>
      <ECTransition Source="UP_CHECK" Destination="UP_CHECK_PASS" Condition="height" x="470.5607" y="2058.7007"/>
      <ECTransition Source="UP_CHECK" Destination="UP_CHECK_FAIL" Condition="!(height)" x="770.5427" y="2364.5647"/>
      <ECTransition Source="READY4CHECK" Destination="DOWN_CHECK" Condition="downCheck" x="1835.1847" y="1717.5447"/>
      <ECTransition Source="DOWN_CHECK" Destination="DOWN_CHECK_PASS" Condition="material&amp;&amp;color" x="2635.1367" y="2170.4587"/>
      <ECTransition Source="DOWN_CHECK" Destination="DOWN_CHECK_FAIL" Condition="!(material&amp;&amp;color)" x="2152.8127" y="2411.6207"/>
      <ECTransition Source="START" Destination="READY4CHECK" Condition="pieceInPlace" x="1399.9167" y="1111.6987"/>
      <ECTransition Source="UP_CHECK_PASS" Destination="READY4CHECK" Condition="1" x="1423.4447" y="2035.1727"/>
      <ECTransition Source="UP_CHECK_FAIL" Destination="READY4CHECK" Condition="1" x="1711.6627" y="2923.3547"/>
      <ECTransition Source="DOWN_CHECK_PASS" Destination="READY4CHECK" Condition="1" x="2029.2907" y="2076.3467"/>
      <ECTransition Source="DOWN_CHECK_FAIL" Destination="READY4CHECK" Condition="1" x="1999.8807" y="2652.7827"/>
    </ECC>  <Algorithm Name="INIT" Comment="Initialization algorithm"/>
    <Algorithm Name="upAlgorithm" Comment=""/>
    <Algorithm Name="downAlgorithm" Comment=""/>
  </BasicFB>  <VersionInfo Organization="Software Engineering Group" Version="1.0" Author="-" Date="2006-02-07" Remarks="The FB type template"/>
</FBType>
