<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="36.00" TargetName="UDT_ALARMS_ENCODER" TargetType="DataType" ContainsContext="true" ExportDate="Sat May 24 15:44:24 2025" ExportOptions="References NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="MTN6_MCM01">
<DataTypes Use="Context">
<DataType Name="UDT_CTRL_SIO_FIO" Family="NoFamily" Class="User">
<Members>
<Member Name="STS" DataType="UDT_CTRL_SIO_FIO_STS" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_SIO_FIO_STS"/>
</Dependencies>
</DataType>
<DataType Name="UDT_CTRL_SIO_FIO_STS" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_CTRL_S0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Communication_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_S0" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Ethernet Communication Faulted]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="UDT_CTRL_VFD" Family="NoFamily" Class="User">
<Members>
<Member Name="CMD" DataType="UDT_CTRL_VFD_CMD" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="STS" DataType="UDT_CTRL_VFD_STS" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_VFD_CMD"/>
<Dependency Type="DataType" Name="UDT_CTRL_VFD_STS"/>
</Dependencies>
</DataType>
<DataType Name="UDT_CTRL_VFD_CMD" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_CTRL_V0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Start" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Start the Conveyor Locally in Auto Mode]]>
</Description>
</Member>
<Member Name="Stop_Require_Start" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[Stops the Motor
, requires Start command to Restart]]>
</Description>
</Member>
<Member Name="Stop_Auto_Restart" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="2" ExternalAccess="Read/Write">
<Description>
<![CDATA[Stops the Motor, which will restart automatically when False]]>
</Description>
</Member>
<Member Name="Jammed" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="3" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Disable" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="4" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Run_Up_Enabled" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="5" ExternalAccess="Read/Write">
<Description>
<![CDATA[When Downstream Conveyors are Stopped, Conveyor keeps running unill Discharge PE is Blocked]]>
</Description>
</Member>
<Member Name="Power_Saving_Mode_ON" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="6" ExternalAccess="Read/Write">
<Description>
<![CDATA[VFD
is in Power Saving Mode]]>
</Description>
</Member>
<Member Name="Interlock" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="7" ExternalAccess="Read/Write">
<Description>
<![CDATA[Downstream is Running]]>
</Description>
</Member>
<Member Name="ZZZZZZZZZZUDT_CTRL_V9" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Stopped_By_Stop_PB" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V9" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor
Stopped by Station Stop PushButton]]>
</Description>
</Member>
<Member Name="Log" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Log]]>
</Description>
</Member>
<Member Name="Acknowledge_Log" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Acknowledge Log]]>
</Description>
</Member>
<Member Name="ZZZZZZZZZZUDT_CTRL_V13" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Full" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V13" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Encoder_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V13" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[Encoder Faulted or Conveyor is Running at Low Speed]]>
</Description>
</Member>
<Member Name="Speed_FPM" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Speed in Feet per Minute]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="UDT_CTRL_VFD_STS" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_CTRL_V0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Running" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Running]]>
</Description>
</Member>
<Member Name="VFD_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[VFD Faulted]]>
</Description>
</Member>
<Member Name="Communication_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="2" ExternalAccess="Read/Write">
<Description>
<![CDATA[Ethernet Communicationb Faulted]]>
</Description>
</Member>
<Member Name="Interlock" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V0" BitNumber="3" ExternalAccess="Read/Write">
<Description>
<![CDATA[Downstream Conveyor is Running]]>
</Description>
</Member>
<Member Name="Current_Speed" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Current Speed of Conveyor in FPM]]>
</Description>
</Member>
<Member Name="Requested_Speed" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Requested Speed of Conveyor in FPM]]>
</Description>
</Member>
<Member Name="ZZZZZZZZZZUDT_CTRL_V7" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="In_Power_Saving_Mode" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[In Power Saving Mode]]>
</Description>
</Member>
<Member Name="Maintenance_Mode" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[In Maintenance Mode]]>
</Description>
</Member>
<Member Name="MCM_Started" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="2" ExternalAccess="Read/Write">
<Description>
<![CDATA[MCM Started]]>
</Description>
</Member>
<Member Name="EStopped" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="3" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor Emergency Stopped]]>
</Description>
</Member>
<Member Name="Jammed" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="4" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Full" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="5" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Enabled" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="6" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="Local_Stopped" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V7" BitNumber="7" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor is Stopped Locally]]>
</Description>
</Member>
<Member Name="Log" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Log]]>
</Description>
</Member>
<Member Name="ZZZZZZZZZZUDT_CTRL_V17" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Encoder_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V17" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Encoder Faulted or Conveyor is Running at Low Speed]]>
</Description>
</Member>
<Member Name="MCM_JR_PB_Pressed" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V17" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[Jam Reset PushButton Pressed on MCM]]>
</Description>
</Member>
<Member Name="Disabled" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V17" BitNumber="2" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor]]>
</Description>
</Member>
<Member Name="MCM_Start_PB_Pressed" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V17" BitNumber="3" ExternalAccess="Read/Write">
<Description>
<![CDATA[Start PushButton Pressed on MCM]]>
</Description>
</Member>
<Member Name="MCM_EStop_PB_Pressed" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_V17" BitNumber="4" ExternalAccess="Read/Write">
<Description>
<![CDATA[Emergency Stop PushButton Pressed on MCM]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Use="Target" Name="UDT_ALARMS_ENCODER" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_ALARMS0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Encoder_Faulted" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_ALARMS0" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Encoder Faulted or Conveyor is Running at Low Speed]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Use="Target" Name="UDT_AOI_ENCODER" Family="NoFamily" Class="User">
<Members>
<Member Name="AOI" DataType="AOI_ENCODER" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="HMI" DataType="UDT_HMI_ENCODER" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="CTRL" DataType="UDT_CTRL_ENCODER" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="AddOnInstructionDefinition" Name="AOI_ENCODER"/>
<Dependency Type="DataType" Name="UDT_HMI_ENCODER"/>
<Dependency Type="DataType" Name="UDT_CTRL_ENCODER"/>
</Dependencies>
</DataType>
<DataType Use="Target" Name="UDT_CTRL_ENCODER" Family="NoFamily" Class="User">
<Members>
<Member Name="STS" DataType="UDT_CTRL_ENCODER_STS" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="CMD" DataType="UDT_CTRL_ENCODER_CMD" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_ENCODER_STS"/>
<Dependency Type="DataType" Name="UDT_CTRL_ENCODER_CMD"/>
</Dependencies>
</DataType>
<DataType Use="Target" Name="UDT_CTRL_ENCODER_CMD" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_CTRL_E0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Temp" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_E0" BitNumber="0" ExternalAccess="Read/Write"/>
</Members>
</DataType>
<DataType Use="Target" Name="UDT_CTRL_ENCODER_STS" Family="NoFamily" Class="User">
<Members>
<Member Name="ZZZZZZZZZZUDT_CTRL_E0" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Encoder_Fault" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_E0" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor Speed is Low or Encoder Faulted]]>
</Description>
</Member>
<Member Name="Conveyor_Running" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZUDT_CTRL_E0" BitNumber="1" ExternalAccess="Read/Write">
<Description>
<![CDATA[Conveyor is Running]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Use="Target" Name="UDT_HMI_ENCODER" Family="NoFamily" Class="User">
<Members>
<Member Name="Name" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="MCM_Name" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Conveyor_Name" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Alarm" DataType="UDT_ALARMS_ENCODER" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[User Defined Tags for HMI Alarms]]>
</Description>
</Member>
<Member Name="Color" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Color of Animation]]>
</Description>
</Member>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="UDT_ALARMS_ENCODER"/>
</Dependencies>
</DataType>
</DataTypes>
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Name="AOI_ENCODER" Class="Standard" Revision="1.0" Vendor="Automation Standard" ExecutePrescan="true" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2011-11-21T15:20:02.584Z" CreatedBy="Not Available" EditedDate="2025-05-19T22:15:52.618Z" EditedBy="LCIBATUMI\ilia.gurielidze"
 SoftwareRevision="v36.00">
<Description>
<![CDATA[ENCODER]]>
</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_ENCODER" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="CTRL" TagType="Base" DataType="UDT_CTRL_ENCODER" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Conveyor_Encoder" TagType="Base" DataType="UDT_CTRL_VFD" Usage="InOut" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Conveyour Encoder Controls]]>
</Description>
</Parameter>
<Parameter Name="Upstream_VFD" TagType="Base" DataType="UDT_CTRL_VFD" Usage="InOut" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Upstream Conveyour VFD Controls]]>
</Description>
</Parameter>
<Parameter Name="Downstream_VFD" TagType="Base" DataType="UDT_CTRL_VFD" Usage="InOut" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Downstream Conveyour VFD Controls]]>
</Description>
</Parameter>
<Parameter Name="FIO" TagType="Base" DataType="UDT_CTRL_SIO_FIO" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="In_Encoder_Pulse" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Incoming Pulse from Encoder]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Encoder_Faulted" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Encoder is Faulted]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Low_Speed_In_Percentages" TagType="Base" DataType="DINT" Usage="Input" Radix="Decimal" Required="false" Visible="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Speed that is considered to be Low which will report the Fault]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Conveyor_Speed" TagType="Base" DataType="DINT" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read Only">
<Description>
<![CDATA[Current Conveyor Speed]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="ONS" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Concatenated_String" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[String for Log]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[[0,'$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00$00']]]>
</DefaultData>
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
<LocalTag Name="Encoder_Pulse_CTU" DataType="COUNTER" ExternalAccess="None">
<Description>
<![CDATA[Counter that accumulates Encoder Pulses]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[[0,99999,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Structure DataType="COUNTER">
<DataValueMember Name="PRE" DataType="DINT" Radix="Decimal" Value="99999"/>
<DataValueMember Name="ACC" DataType="DINT" Radix="Decimal" Value="0"/>
<DataValueMember Name="CU" DataType="BOOL" Value="0"/>
<DataValueMember Name="CD" DataType="BOOL" Value="0"/>
<DataValueMember Name="DN" DataType="BOOL" Value="0"/>
<DataValueMember Name="OV" DataType="BOOL" Value="0"/>
<DataValueMember Name="UN" DataType="BOOL" Value="0"/>
</Structure>
</DefaultData>
</LocalTag>
<LocalTag Name="Speed_Timer" DataType="TIMER" ExternalAccess="None">
<Description>
<![CDATA[Speed Timer to calculate Conveyor Speed in Feet Per Second]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[[0,1000,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Structure DataType="TIMER">
<DataValueMember Name="PRE" DataType="DINT" Radix="Decimal" Value="1000"/>
<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="Low_Speed" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[Low Conveyor Speed]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Low_Speed_Timer" DataType="TIMER" ExternalAccess="None">
<Description>
<![CDATA[The amount of time Conveyor runs with a Low Speed before Low Speed Fault Is Reported]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[[0,1000,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Structure DataType="TIMER">
<DataValueMember Name="PRE" DataType="DINT" Radix="Decimal" Value="1000"/>
<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>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Comment>
<![CDATA[The Encoder sends a pulse each time Conveyor moves by 1 Inch


]]>
</Comment>
<Text>
<![CDATA[XIC(In_Encoder_Pulse)CTU(Encoder_Pulse_CTU,?,?);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[XIO(Speed_Timer.DN)TON(Speed_Timer,?,?);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Comment>
<![CDATA[Coveyor's Speed Formula
Inches Per Second * 5 = Feet Per Minute
]]>
</Comment>
<Text>
<![CDATA[XIC(Speed_Timer.DN)MUL(Encoder_Pulse_CTU.ACC,5,Conveyor_Speed)CLR(Encoder_Pulse_CTU.ACC);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[MUL(Conveyor_Encoder.STS.Current_Speed,Low_Speed_In_Percentages,Low_Speed)DIV(Low_Speed,100,Low_Speed);]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Text>
<![CDATA[LT(Conveyor_Speed,Low_Speed)TON(Low_Speed_Timer,?,?)XIC(Low_Speed_Timer.DN)XIO(Encoder_Faulted)OTL(Encoder_Faulted);]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[XIC(Conveyor_Encoder.STS.MCM_JR_PB_Pressed)XIC(Encoder_Faulted)OTU(Encoder_Faulted);]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Text>
<![CDATA[XIC(Encoder_Faulted)MOVE(' Encoder Fault',Concatenated_String)CONCAT(HMI.Name,Concatenated_String,Conveyor_Encoder.CMD.Log)OTL(Conveyor_Encoder.CMD.Encoder_Fault)OTL(Upstream_VFD.CMD.Stop_Auto_Restart)OTL(Downstream_VFD.CMD.Stop_Auto_Restart)OTE(CTRL.STS.Encoder_Fault)OTE(HMI.Alarm.Encoder_Faulted);]]>
</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>
<Rung Number="2" Type="N">
<Text>
<![CDATA[OTU(Encoder_Faulted);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_VFD"/>
<Dependency Type="DataType" Name="UDT_CTRL_ENCODER"/>
<Dependency Type="DataType" Name="UDT_CTRL_SIO_FIO"/>
<Dependency Type="DataType" Name="UDT_HMI_ENCODER"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
