<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--EMERGENSY STOP STATION PUSH BUTTON-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="36.00" TargetName="AOI_STATION_EPC" TargetType="AddOnInstructionDefinition" TargetRevision="1.0 " TargetLastEdited="2025-06-04T10:57:49.503Z" ContainsContext="true" ExportDate="Wed Jun 04 17:23:23 2025" ExportOptions="NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="BaseProgram">
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="AOI_STATION_EPC" Revision="1.0" Vendor="Automation Standard" ExecutePrescan="true" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2012-02-01T16:00:09.261Z" CreatedBy="Not Available" EditedDate="2025-06-04T10:57:49.503Z" EditedBy="LCIBATUMI\beka.makharadze"
 SoftwareRevision="v36.00">
<Description>
<![CDATA[EMERGENSY STOP STATION PUSH BUTTON]]>
</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="MCM" TagType="Base" DataType="UDT_CTRL_MCM" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="HMI" TagType="Base" DataType="UDT_HMI_STATION" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Station" TagType="Base" DataType="UDT_CTRL_STATION" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="SIO" TagType="Base" DataType="UDT_CTRL_SIO_FIO" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="In_EStop" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Emergency Pull Cord(NC)]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="EStop_Actuated" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Emergency Stop Actuated]]>
</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[Beacon Light]]>
</Description>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="Restart" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Beacon_ONS" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[To Unlatch Beacon Light once if Emergency Stop was not Actuated]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Flip_Flop" DataType="AOI_FLIP_FLOP" ExternalAccess="None">
<Description>
<![CDATA[Beacon Flip Flop]]>
</Description>
<DefaultData Format="Decorated">
<Structure DataType="AOI_FLIP_FLOP">
<DataValueMember Name="EnableIn" DataType="BOOL" Value="1"/>
<DataValueMember Name="EnableOut" DataType="BOOL" Value="0"/>
<DataValueMember Name="On" DataType="DINT" Radix="Decimal" Value="0"/>
<DataValueMember Name="Off" DataType="DINT" Radix="Decimal" Value="0"/>
<DataValueMember Name="Flash" DataType="BOOL" Value="0"/>
</Structure>
</DefaultData>
</LocalTag>
<LocalTag Name="Estop_Was_Actuated" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[Emergency Stop was Actuated]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Concatenated_String" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[Sring for Log]]>
</Description>
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
<LocalTag Name="Acknowledge_ONS" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[To Unlatch the Ucknoledgement once the Emergency Stop Actuated]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Acknowledge" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[Emergency Stop Acknowledgment]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Tripped_Striing" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[Tripped]]>
</Description>
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
<LocalTag Name="Empty_String" 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">
<Text>
<![CDATA[COP(Station.CMD.Log,Station.STS.Log,1);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[XIO(In_EStop)XIO(SIO.STS.Communication_Fault)OTL(Station.CMD.EStop_Actuated)OTL(Estop_Was_Actuated)OTL(MCM.CMD.EStop_Actuated)OTE(EStop_Actuated);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Text>
<![CDATA[XIO(Station.STS.EStop_Was_Actuated)OTU(Estop_Was_Actuated);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[XIO(Estop_Was_Actuated)[ONS(Beacon_ONS) OTU(Out_Beacon_Light) ,JMP(JMP) ];]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Text>
<![CDATA[[XIC(EStop_Actuated) AOI_FLIP_FLOP(Flip_Flop,500,500) ,XIC(Station.STS.EStop_Was_Actuated) XIC(In_EStop) ]OTE(Out_Beacon_Light);]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[LBL(JMP)NOP();]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Comment>
<![CDATA[ALARM
]]>
</Comment>
<Text>
<![CDATA[XIC(EStop_Actuated)OTE(HMI.Alarm.EStopped);]]>
</Text>
</Rung>
<Rung Number="7" Type="N">
<Comment>
<![CDATA[Colors of Animation
]]>
</Comment>
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="8" Type="N">
<Comment>
<![CDATA[Conveyor Running - Green (0.255.0)
]]>
</Comment>
<Text>
<![CDATA[MOVE(0,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="9" Type="N">
<Comment>
<![CDATA[EStop Actuated - Red (255.0.0)
]]>
</Comment>
<Text>
<![CDATA[XIC(EStop_Actuated)MOVE(1,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="10" Type="N">
<Text>
<![CDATA[XIC(MCM.STS.Unacknowldge_All)OTU(Acknowledge);]]>
</Text>
</Rung>
<Rung Number="11" Type="N">
<Text>
<![CDATA[[XIC(EStop_Actuated) ONS(Acknowledge_ONS) OTU(Acknowledge) ,XIC(EStop_Actuated) [XIO(Acknowledge) COP(Tripped_Striing,Concatenated_String,1) CONCAT(HMI.Name,Concatenated_String,MCM.CMD.Log) ADD(MCM.CMD.Log_Quantity,1,MCM.CMD.Log_Quantity) ,COP(Tripped_Striing,Concatenated_String,1) CONCAT(HMI.Name,Concatenated_String,Station.CMD.Log) ] ,NE(MCM.STS.Aknowledgement_ID,Empty_String) EQ(MCM.CMD.Log,MCM.STS.Aknowledgement_ID) OTL(Acknowledge) COP(Empty_String,MCM.STS.Aknowledgement_ID,1) ];]]>
</Text>
</Rung>
<Rung Number="12" Type="N">
<Text>
<![CDATA[COP(Empty_String,Station.CMD.Log,1);]]>
</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,HMI.Alarm,1);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="AddOnInstructionDefinition" Name="AOI_FLIP_FLOP"/>
<Dependency Type="DataType" Name="UDT_HMI_STATION"/>
<Dependency Type="DataType" Name="UDT_CTRL_MCM"/>
<Dependency Type="DataType" Name="UDT_CTRL_SIO_FIO"/>
<Dependency Type="DataType" Name="UDT_CTRL_STATION"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
