MTN6_PLC/PLC/AOIs/AOI_FPE_AOI.L5X

213 lines
7.4 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--FULL PHOTOEYE-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="36.00" TargetName="AOI_FPE" TargetType="AddOnInstructionDefinition" TargetRevision="1.0 " TargetLastEdited="2025-06-09T18:48:56.548Z" ContainsContext="true" ExportDate="Mon Jun 09 22:52:27 2025" ExportOptions="NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="BaseProgram">
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="AOI_FPE" Revision="1.0" Vendor="Automation Standard" ExecutePrescan="true" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2011-11-21T15:20:02.584Z" CreatedBy="Not Available" EditedDate="2025-06-09T18:48:56.548Z" EditedBy="LCIBATUMI\gigi.mamaladze"
SoftwareRevision="v36.00">
<Description>
<![CDATA[FULL PHOTOEYE]]>
</Description>
<Parameters>
<Parameter Name="EnableIn" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="false" Visible="false" ExternalAccess="Read Only"/>
<Parameter Name="EnableOut" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="false" ExternalAccess="Read Only"/>
<Parameter Name="HMI" TagType="Base" DataType="UDT_HMI_PE" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="CTRL" TagType="Base" DataType="UDT_CTRL_PE" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Partner_PE" TagType="Base" DataType="UDT_CTRL_PE" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="VFD" TagType="Base" DataType="UDT_CTRL_VFD" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="FIO" TagType="Base" DataType="UDT_CTRL_SIO_FIO" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="In_Clear" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[PE]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Blocked" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[PE]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Full" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read Only">
<Description>
<![CDATA[Chute/Conveyor is Full]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Can_Run_Up" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[PE is on discharge of conveyor]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Out_Beacon_Light" TagType="Base" DataType="BOOL" Usage="InOut" Radix="Decimal" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Turns the Blue Beacon On]]>
</Description>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="Full_Timer" DataType="TIMER" ExternalAccess="None">
<Description>
<![CDATA[After Full Timer is done PE will report Full Fault]]>
</Description>
<DefaultData Format="Decorated">
<Structure DataType="TIMER">
<DataValueMember Name="PRE" DataType="DINT" Radix="Decimal" Value="0"/>
<DataValueMember Name="ACC" DataType="DINT" Radix="Decimal" Value="0"/>
<DataValueMember Name="EN" DataType="BOOL" Value="0"/>
<DataValueMember Name="TT" DataType="BOOL" Value="0"/>
<DataValueMember Name="DN" DataType="BOOL" Value="0"/>
</Structure>
</DefaultData>
</LocalTag>
<LocalTag Name="ONS" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Concatenated_String" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[Sting for Log]]>
</Description>
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
<LocalTag Name="Full_Latch" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[Self Latching Coil]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Run_Up_Enabled" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[When Upstream Conveyors are stopped, keeps the Conveyour running until the Discharge PE is Blocked]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Full_String" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[' FULL']]>
</Description>
<DefaultData Format="String" Length="5">
<![CDATA[' FULL']]>
</DefaultData>
</LocalTag>
<LocalTag Name="Name" DataType="STRING" ExternalAccess="None">
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Comment>
<![CDATA[Set Amount of Time for Conveyour/Chute to be considered Full
]]>
</Comment>
<Text>
<![CDATA[MUL(HMI.TimeOut,1000,Full_Timer.PRE);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[XIO(In_Clear)XIO(FIO.STS.Communication_Fault)OTE(Blocked)OTE(CTRL.STS.Blocked);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Text>
<![CDATA[XIC(Blocked)GT(Full_Timer.PRE,0)TON(Full_Timer,?,?)XIC(Full_Timer.DN)OTE(Full)OTE(CTRL.STS.Full);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[[XIC(Full) ,XIC(Full_Latch) XIC(Full) ]OTE(Full_Latch)OTE(VFD.CMD.Full)COP(Full_String,Concatenated_String,1)CONCAT(Name,Concatenated_String,VFD.CMD.Log);]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Text>
<![CDATA[XIC(Can_Run_Up)XIC(VFD.STS.Interlock)OTL(Run_Up_Enabled);]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[[XIC(Blocked) ,XIO(Can_Run_Up) ]OTU(Run_Up_Enabled);]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Text>
<![CDATA[XIC(Run_Up_Enabled)OTL(VFD.CMD.Run_Up_Enabled);]]>
</Text>
</Rung>
<Rung Number="7" Type="N">
<Text>
<![CDATA[XIO(Full_Latch)[ONS(ONS) OTU(Out_Beacon_Light) ,JMP(JMP) ];]]>
</Text>
</Rung>
<Rung Number="8" Type="N">
<Text>
<![CDATA[XIC(Full_Latch)OTE(Out_Beacon_Light);]]>
</Text>
</Rung>
<Rung Number="9" Type="N">
<Text>
<![CDATA[LBL(JMP)NOP();]]>
</Text>
</Rung>
<Rung Number="10" Type="N">
<Comment>
<![CDATA[ALARMS
]]>
</Comment>
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="11" Type="N">
<Text>
<![CDATA[XIO(VFD.STS.Running)XIC(Full)OTE(HMI.Alarm.Full);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
<Routine Name="Prescan" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[FLL(0,CTRL,1)FLL(0,HMI.Alarm,1);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_PE"/>
<Dependency Type="DataType" Name="UDT_CTRL_SIO_FIO"/>
<Dependency Type="DataType" Name="UDT_HMI_PE"/>
<Dependency Type="DataType" Name="UDT_CTRL_VFD"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>