MTN6_PLC/PLC/AOIs/AOI_STATION_JR_PB_AOI.L5X

231 lines
7.2 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--JAM RESET STATION PUSH BUTTON
-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="36.00" TargetName="AOI_STATION_JR_PB" TargetType="AddOnInstructionDefinition" TargetClass="Standard" TargetRevision="1.0 " TargetLastEdited="2025-07-11T03:07:02.757Z" ContainsContext="true" ExportDate="Fri Jul 11 16:01:58 2025" ExportOptions="NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="MCM04">
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="AOI_STATION_JR_PB" Class="Standard" Revision="1.0" Vendor="Automation Standard" ExecutePrescan="true" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2011-11-21T15:10:22.337Z" CreatedBy="Not Available" EditedDate="2025-07-11T03:07:02.757Z"
EditedBy="LCIBATUMI\ilia.gurielidze" SoftwareRevision="v36.00">
<Description>
<![CDATA[JAM RESET STATION PUSH BUTTON
]]>
</Description>
<Parameters>
<Parameter Name="EnableIn" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="false" Visible="false" ExternalAccess="Read Only">
<Description>
<![CDATA[Enable Input - System Defined Parameter]]>
</Description>
</Parameter>
<Parameter Name="EnableOut" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="false" ExternalAccess="Read Only">
<Description>
<![CDATA[Enable Output - System Defined Parameter]]>
</Description>
</Parameter>
<Parameter Name="HMI" TagType="Base" DataType="UDT_HMI_STATION" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="CTRL" TagType="Base" DataType="UDT_CTRL_STATION" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Partner" TagType="Base" DataType="UDT_CTRL_STATION" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="JR_PB_I" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Jam Reset PushButton Input (NO)]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="JR_PB_LT_O" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read Only">
<Description>
<![CDATA[Jam Reset PushButton Light Output]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="ONS" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[To prevent the Lathing of Start Signal between Partner Stations]]>
</Description>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Jammed" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Empty_String" DataType="STRING" ExternalAccess="None">
<Description>
<![CDATA[String contains ""]]>
</Description>
<DefaultData Format="String" Length="0">
<![CDATA['']]>
</DefaultData>
</LocalTag>
<LocalTag Name="ONS_Diagnostic_Alram" DataType="BOOL" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Comment>
<![CDATA[Station Jam-Reset Push-Button (GEM Reset)
This module handles the local Jam-Reset push-button (JR PB) and its HMI counterpart.
Jam indication When the upstream controller asserts CTRL.CMD.Jammed the lamp coil JR_PB_LT_O turns on and the status bit CTRL.STS.JR_PB_LT is echoed to the partner conveyor so everyone sees that a jam must be cleared.
Reset action A one-shot examines three parallel reset sources:
physical JR_PB_I,
HMI.JR_PB,
Partner.STS.Jam_Reset (reset requested from the adjacent conveyor).
On the rising edge it pulses CTRL.STS.Jam_Reset for one scan and clears the HMI command bit; this pulse lets the downstream AOI retract its photo-eye and clear the jam.
Lamp control The lamp is solid while CTRL.CMD.Jammed is true; once the jam clears the lamp drops.
Button states for HMI.STATE
0 idle, lamp off1 idle, lamp on
2 pressed, lamp on3 pressed, lamp off
The pressed states win if both conditions are true simultaneously.
Alarm When the physical push-button is pressed the AOI sets HMI.Alarm.Pressed so the operator log shows the event.
After every cycle the AOI clears CTRL.CMD.Jammed and blanks CTRL.CMD.Log so a new jam can generate a fresh log entry.
Command bits (received)
CTRL.CMD.Log
CTRL.CMD.Jammed
HMI.JR_PB
Partner.STS.Jam_Reset
Partner.STS.JR_PB_LT
Status bits (set)
CTRL.STS.Log
CTRL.STS.Jam_Reset
CTRL.STS.JR_PB_LT
JR_PB_LT_O (lamp output)
Jammed (local copy of CTRL.CMD.Jammed)
HMI bits
HMI.JR_PB (command)
HMI.STATE (0, 1, 2, 3 as above)
HMI.Alarm.Pressed (set while JR_PB_I is true)
Alarm bits
HMI.Alarm.Pressed is raised whenever the physical Jam-Reset push-button is pressed.
]]>
</Comment>
<Text>
<![CDATA[COP(CTRL.CMD.Log,CTRL.STS.Log,1);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[[XIC(JR_PB_I) ,XIC(HMI.JR_PB) ,XIC(Partner.STS.Jam_Reset) ONS(ONS.0) ]OTE(CTRL.STS.Jam_Reset)OTU(HMI.JR_PB);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Text>
<![CDATA[[XIC(CTRL.CMD.Jammed) ,XIO(Jammed) XIC(Partner.STS.JR_PB_LT) ]OTE(CTRL.STS.JR_PB_LT)OTE(JR_PB_LT_O);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[XIC(CTRL.CMD.Jammed)OTE(Jammed);]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Comment>
<![CDATA[Alarms
]]>
</Comment>
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[XIC(JR_PB_I)OTE(HMI.Alarm.Pressed);]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Comment>
<![CDATA[Colors of Animation
]]>
</Comment>
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="7" Type="N">
<Comment>
<![CDATA[Gray
]]>
</Comment>
<Text>
<![CDATA[XIO(JR_PB_LT_O)MOVE(0,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="8" Type="N">
<Comment>
<![CDATA[White
]]>
</Comment>
<Text>
<![CDATA[XIC(JR_PB_LT_O)MOVE(1,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="9" Type="N">
<Comment>
<![CDATA[Yellow
]]>
</Comment>
<Text>
<![CDATA[XIO(JR_PB_LT_O)[XIC(JR_PB_I) ,XIC(HMI.JR_PB) ]MOVE(3,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="10" Type="N">
<Comment>
<![CDATA[Green
]]>
</Comment>
<Text>
<![CDATA[XIC(JR_PB_LT_O)[XIC(JR_PB_I) ,XIC(HMI.JR_PB) ]MOVE(2,HMI.STATE);]]>
</Text>
</Rung>
<Rung Number="11" Type="N">
<Text>
<![CDATA[COP(Empty_String,CTRL.CMD.Log,1)OTU(CTRL.CMD.Jammed);]]>
</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)OTU(HMI.JR_PB);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="UDT_CTRL_STATION"/>
<Dependency Type="DataType" Name="UDT_HMI_STATION"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>