<FBType Name="CheckingMashineFBT" Comment="Basic Function Block">
	<Identification Standard="61499-2" Description=""/>
	<CompilerInfo header="" classdef=""/>
	<InterfaceList>
		<InputVars>
      <VarDeclaration Name="P3" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
    </InputVars>
		<OutputVars/>
		<EventInputs>
      <Event Name="processPieceC" Type="" Comment="Normal Execution Request">
        <With Var="P3"/>
      </Event>
      <Event Name="ccUp" Type="" Comment=""/>
      <Event Name="ccDown" Type="" Comment=""/>
    </EventInputs>
		<EventOutputs>
      <Event Name="ccMoveDown" Type="" Comment="Execution Confirmation"/>
      <Event Name="ccMoveUp" Type="" Comment=""/>
      <Event Name="stopCheckingMashine" Type="" Comment=""/>
      <Event Name="OK2RotateC" Type="" Comment=""/>
    </EventOutputs>
	</InterfaceList>
	<Service/>
	<BasicFB>
		<InternalVars>
      <VarDeclaration Name="P3" Type="BOOL" Comment="" InitialValue="" ArraySize=""/>
    </InternalVars>
		<ECC>
      <ECState Name="START" Comment="" x="970.5307" y="1017.5867"/>
      <ECState Name="CHECK" Comment="" x="1064.6427" y="1970.4707">
        <ECAction Algorithm="" Output="ccMoveDown"/>
      </ECState>
      <ECState Name="CHECKED" Comment="" x="1076.4067" y="2358.6827">
        <ECAction Algorithm="" Output="stopCheckingMashine"/>
        <ECAction Algorithm="" Output="ccMoveUp"/>
      </ECState>
      <ECState Name="CCUP" Comment="" x="1041.1147" y="2882.1807">
        <ECAction Algorithm="ResetP3" Output="stopCheckingMashine"/>
        <ECAction Algorithm="" Output="OK2RotateC"/>
      </ECState>
      <ECState Name="OK2ROTATE" Comment="" x="2152.8127" y="1199.9287">
        <ECAction Algorithm="" Output="OK2RotateC"/>
      </ECState>
      <ECTransition Source="START" Destination="CHECK" Condition="processPieceC&amp;&amp;(P3)" x="541.1447" y="1729.3087"/>
      <ECTransition Source="CHECK" Destination="CHECKED" Condition="ccDown" x="570.5547" y="2188.1047"/>
      <ECTransition Source="CHECKED" Destination="CCUP" Condition="ccUp" x="599.9647" y="2635.1367"/>
      <ECTransition Source="CCUP" Destination="START" Condition="1" x="3017.4667" y="2452.7947"/>
      <ECTransition Source="START" Destination="OK2ROTATE" Condition="processPieceC&amp;&amp;!(P3)" x="1917.5327" y="976.4127"/>
      <ECTransition Source="OK2ROTATE" Destination="START" Condition="1" x="2046.9367" y="1405.7987"/>
    </ECC>  <Algorithm Name="INIT" Comment="Initialization algorithm"/>
    <Algorithm Name="REQ" Comment="Normally executed algorithm"/>
    <Algorithm Name="SetP3" Comment=""/>
    <Algorithm Name="ResetP3" Comment=""/>
  </BasicFB>  <VersionInfo Organization="Software Engineering Group" Version="1.0" Author="-" Date="2006-02-07" Remarks="The FB type template"/>
</FBType>
