<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--AOI that controls the state of the K50 Pro L2 Light and Audible Segments.-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="33.00" TargetName="Banner_K50ProL2_PD_v4" TargetType="AddOnInstructionDefinition" TargetRevision="4.0 " TargetLastEdited="2023-09-21T19:24:22.949Z" ContainsContext="true" ExportDate="Thu Sep 21 14:24:50 2023" ExportOptions="References NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="Test">
<DataTypes Use="Context">
<DataType Name="Banner_K50ProL2_PDO_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT that records the converted prcoess data.]]>
</Description>
<Members>
<Member Name="Reserved" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Reserved]]>
</Description>
</Member>
<Member Name="Color_2_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=high, 1=low, 2=medium, 3=custom, 4=off]]>
</Description>
</Member>
<Member Name="Color_1_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=high, 1=low, 2=medium, 3=custom, 4=off]]>
</Description>
</Member>
<Member Name="Animation_Type" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=off, 1=steady, 2=flash,3=two color flash, 4=strobe, 5=half/half, 6=half/half rotate, 7=chase, 8=demo mode]]>
</Description>
</Member>
<Member Name="Rotation_Direction" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[false=counter clockwise, true=clockwise]]>
</Description>
</Member>
<Member Name="Audible_Mode" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=off, 1=on, 2=pulse]]>
</Description>
</Member>
<Member Name="Color_2" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=green, 1=red, 2=orange, 3=yellow, 4=lime, 5=spring green, 6=cyan, 7=sky blue, 8=blue, 9=violet, 10=magenta, 11=rose, 12=white, 13=custom1, 14=custom2, 15=custom3, 16=custom4, 17=custom5]]>
</Description>
</Member>
<Member Name="Color_Flash_Rate" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Hz. 0=1.5, 1=.5, 2=3, 3=6, 4=9, 5=12, 6=Custom]]>
</Description>
</Member>
<Member Name="Color_1" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0=green, 1=red, 2=orange, 3=yellow, 4=lime, 5=spring green, 6=cyan, 7=sky blue, 8=blue, 9=violet, 10=magenta, 11=rose, 12=white, 13=custom1, 14=custom2, 15=custom3, 16=custom4, 17=custom5]]>
</Description>
</Member>
<Member Name="PDO_DT" DataType="SINT" Dimension="4" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
</DataType>
</DataTypes>
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="Banner_K50ProL2_PD_v4" Revision="4.0" Vendor="Banner Engineering" ExecutePrescan="false" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2017-08-02T15:08:26.506Z" CreatedBy="DUKE\2011324" EditedDate="2023-09-21T19:24:22.949Z" EditedBy="DUKE\jpreisen"
 SoftwareRevision="v33.00">
<Description>
<![CDATA[AOI that controls the state of the K50 Pro L2 Light and Audible Segments.]]>
</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="Process_Data" TagType="Base" DataType="Banner_K50ProL2_PDO_v4" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Byte_Swap" TagType="Base" DataType="BOOL" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="Temp_Byte_Array" DataType="SINT" Dimensions="4" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[[0,0,0,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Array DataType="SINT" Dimensions="4" Radix="Decimal">
<Element Index="[0]" Value="0"/>
<Element Index="[1]" Value="0"/>
<Element Index="[2]" Value="0"/>
<Element Index="[3]" Value="0"/>
</Array>
</DefaultData>
</LocalTag>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Comment>
<![CDATA[Take K50 Process Data Output information and store it into a temporary byte array.]]>
</Comment>
<Text>
<![CDATA[XIO(Byte_Swap)BTD(Process_Data.Color_2_Intensity,0,Process_Data.PDO_DT[0],0,4)BTD(Process_Data.Color_1_Intensity,0,Process_Data.PDO_DT[1],4,4)BTD(Process_Data.Animation_Type,0,Process_Data.PDO_DT[1],0,4)BTD(Process_Data.Rotation_Direction,0,Process_Data.PDO_DT[2],7,1)BTD(Process_Data.Audible_Mode,0,Process_Data.PDO_DT[2],5,2)BTD(Process_Data.Color_2,0,Process_Data.PDO_DT[2],0,5)BTD(Process_Data.Color_Flash_Rate,0,Process_Data.PDO_DT[3],5,3)BTD(Process_Data.Color_1,0,Process_Data.PDO_DT[3],0,5);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[XIC(Byte_Swap)BTD(Process_Data.Color_2_Intensity,0,Process_Data.PDO_DT[1],0,4)BTD(Process_Data.Color_1_Intensity,0,Process_Data.PDO_DT[0],4,4)BTD(Process_Data.Animation_Type,0,Process_Data.PDO_DT[0],0,4)BTD(Process_Data.Rotation_Direction,0,Process_Data.PDO_DT[3],7,1)BTD(Process_Data.Audible_Mode,0,Process_Data.PDO_DT[3],5,2)BTD(Process_Data.Color_2,0,Process_Data.PDO_DT[3],0,5)BTD(Process_Data.Color_Flash_Rate,0,Process_Data.PDO_DT[2],5,3)BTD(Process_Data.Color_1,0,Process_Data.PDO_DT[2],0,5);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50ProL2_PDO_v4"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
