<FBType Name="FeederFBT" Comment="Basic Function Block">
	<Identification Standard="61499-2" Description=""/>
	<CompilerInfo header="" classdef=""/>
	<InterfaceList>
		<InputVars/>
		<OutputVars/>
		<EventInputs>
      <Event Name="BackPosR" Type="" Comment=""/>
      <Event Name="FrontPosR" Type="" Comment=""/>
      <Event Name="movePiece" Type="" Comment=""/>
    </EventInputs>
		<EventOutputs>
      <Event Name="pieceReady" Type="" Comment=""/>
      <Event Name="moveBack" Type="" Comment=""/>
      <Event Name="moveForward" Type="" Comment=""/>
      <Event Name="stop" Type="" Comment=""/>
    </EventOutputs>
	</InterfaceList>
	<Service/>
	<BasicFB>
		<InternalVars/>
		<ECC>
      <ECState Name="START" Comment="Normal execution" x="541.1447" y="447.0327"/>
      <ECState Name="MOVING_FORWARD" Comment="" x="423.5047" y="1341.0967">
        <ECAction Algorithm="" Output="moveForward"/>
      </ECState>
      <ECState Name="PIECE_MOVED" Comment="" x="364.6847" y="1658.7247">
        <ECAction Algorithm="" Output="stop"/>
        <ECAction Algorithm="" Output="moveBack"/>
        <ECAction Algorithm="" Output="pieceReady"/>
      </ECState>
      <ECState Name="MOVING_BACKWARD" Comment="" x="347.0387" y="2052.8187"/>
      <ECState Name="IN_BACK_POS" Comment="" x="358.8027" y="2505.7327">
        <ECAction Algorithm="" Output="stop"/>
      </ECState>
      <ECTransition Source="START" Destination="MOVING_FORWARD" Condition="movePiece" x="388.2127" y="941.1207"/>
      <ECTransition Source="MOVING_FORWARD" Destination="PIECE_MOVED" Condition="FrontPosR" x="499.9707" y="1505.7927"/>
      <ECTransition Source="PIECE_MOVED" Destination="MOVING_BACKWARD" Condition="1" x="488.2067" y="1888.1227"/>
      <ECTransition Source="MOVING_BACKWARD" Destination="IN_BACK_POS" Condition="BackPosR" x="399.9767" y="2299.8627"/>
      <ECTransition Source="IN_BACK_POS" Destination="START" Condition="1" x="2441.0307" y="1535.2027"/>
    </ECC>  <Algorithm Name="INIT" Comment="Initialization algorithm"/>
    <Algorithm Name="REQ" Comment="Normally executed algorithm"/>
  </BasicFB>  <VersionInfo Organization="Software Engineering Group" Version="1.0" Author="-" Date="2006-02-07" Remarks="The FB type template"/>
</FBType>
