<FBType Name="ProcessingControllerFBT" Comment="Basic Function Block">
	<Identification Standard="61499-2" Description=""/>
	<CompilerInfo header="" classdef=""/>
	<InterfaceList>
		<InputVars/>
		<OutputVars/>
		<EventInputs>
      <Event Name="ready4Piece" Type="" Comment="Normal Execution Request"/>
      <Event Name="pieceInP1" Type="" Comment=""/>
      <Event Name="OK2RotateD" Type="" Comment=""/>
      <Event Name="OK2RotateC" Type="" Comment=""/>
      <Event Name="rotationComplete" Type="" Comment=""/>
      <Event Name="start" Type="" Comment=""/>
    </EventInputs>
		<EventOutputs>
      <Event Name="rotate" Type="" Comment=""/>
      <Event Name="ready4Piece" Type="" Comment=""/>
      <Event Name="processPieceD" Type="" Comment=""/>
      <Event Name="processPieceC" Type="" Comment=""/>
    </EventOutputs>
	</InterfaceList>
	<Service/>
	<BasicFB>
		<InternalVars/>
		<ECC>
      <ECState Name="IDLE" Comment="" x="817.5987" y="929.3567">
        <ECAction Algorithm="" Output="ready4Piece"/>
      </ECState>
      <ECState Name="WAITOK2RD" Comment="" x="1770.4827" y="1964.5887"/>
      <ECState Name="WAITOK2RC" Comment="" x="782.3067" y="1964.5887"/>
      <ECState Name="ROTATE" Comment="" x="1182.2827" y="2423.3847">
        <ECAction Algorithm="" Output="rotate"/>
      </ECState>
      <ECState Name="PROCESS" Comment="" x="1246.9847" y="2905.7087">
        <ECAction Algorithm="" Output="processPieceC"/>
        <ECAction Algorithm="" Output="processPieceD"/>
      </ECState>
      <ECState Name="WAIT_ANY_OK2R" Comment="" x="1211.6927" y="1599.9047"/>
      <ECState Name="START" Comment="" x="88.2307" y="252.9267"/>
      <ECTransition Source="IDLE" Destination="WAIT_ANY_OK2R" Condition="pieceInP1" x="711.7227" y="1388.1527"/>
      <ECTransition Source="ROTATE" Destination="PROCESS" Condition="rotationComplete" x="782.3067" y="2682.1927"/>
      <ECTransition Source="PROCESS" Destination="IDLE" Condition="1" x="3323.3307" y="1999.8807"/>
      <ECTransition Source="WAIT_ANY_OK2R" Destination="WAITOK2RC" Condition="OK2RotateD" x="1105.8167" y="1846.9487"/>
      <ECTransition Source="WAITOK2RC" Destination="ROTATE" Condition="OK2RotateC" x="905.8287" y="2199.8687"/>
      <ECTransition Source="WAITOK2RD" Destination="ROTATE" Condition="OK2RotateD" x="1823.4207" y="2246.9247"/>
      <ECTransition Source="WAIT_ANY_OK2R" Destination="WAITOK2RD" Condition="OK2RotateC" x="1546.9667" y="1841.0667"/>
      <ECTransition Source="START" Destination="IDLE" Condition="start" x="452.9147" y="588.2007"/>
    </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>
