<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--Takes the raw SINT information and converts that data into actual information.-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="33.03" TargetName="Banner_K50_Select_Indicator_PD_v4" TargetType="AddOnInstructionDefinition" TargetRevision="4.0 " TargetLastEdited="2025-03-31T17:32:44.626Z" ContainsContext="true" ExportDate="Mon Apr 07 08:24:33 2025" ExportOptions="References NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="Test">
<DataTypes Use="Context">
<DataType Name="Banner_K50Select_Indicator_4State_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[Process Data for Four State Mode.]]>
</Description>
<Members>
<Member Name="PDO_Job_Control" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On. Job input for 4 state full logic mode.]]>
</Description>
</Member>
<Member Name="PDO_User_Input" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On. User Input for Four State Full Logic mode.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_Indicator_Adv_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[Advanced Process Data information.]]>
</Description>
<Members>
<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 = 50/50, 5 = 50/50 Rotate, 6 = Chase, 7 = Intensity Sweep, 8 = Color Sweep, 9 = Sequence, 10 = Wave, 11 = Double Wave.]]>
</Description>
</Member>
<Member Name="Direction" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = CCW, 1 = CW.]]>
</Description>
</Member>
<Member Name="Pattern" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Flash, 1 = Strobe, 2 = Three Pulse, 3 = SOS, 4 = Random.]]>
</Description>
</Member>
<Member Name="Speed" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Slow, 1 = Medium, 2 = Fast, 3 = Custom.]]>
</Description>
</Member>
<Member Name="Static_Sequence" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 255.  Value describing the LED position on the device.]]>
</Description>
</Member>
<Member Name="Sequence_Start_Location" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = LED 1, 1 = LED 2, 2 = LED 3, 3 = LED 4, 4 = LED 5, 5 = LED 6, 6 = LED 7, 7 = LED 8.]]>
</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 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="Color_1_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = High, 1 = Medium, 2 = Low, 3 = Off, 4 = Custom.]]>
</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 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="Color_2_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = High, 1 = Medium, 2 = Low, 3 = Off, 4 = Custom.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_Indicator_LEDControl_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[LED Control Process Data for a K50 Select.]]>
</Description>
<Members>
<Member Name="PDI_Output_Status" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Inactive, 1 = Active. Related parameters defined in output and touch settings parameter data.]]>
</Description>
</Member>
<Member Name="LED_1_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_1_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_2_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_2_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_3_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_3_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_4_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_4_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_5_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_5_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_6_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_6_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_7_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_7_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="LED_8_Color" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Green, 1 = Red, 2 = Orange, 3 = Amber, 4 = Yellow, 5 = Lime Green, 6 = Spring Green, 7 = Cyan, 8 = Sky Blue, 9 = Blue, 10 = Violet, 11 = Magenta, 12 = Rose, 13 = White, 14 = Custom 1, 15 = Custom 2.]]>
</Description>
</Member>
<Member Name="LED_8_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 10 (0 to 100%).]]>
</Description>
</Member>
<Member Name="Vibration_Feedback" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On, 2 = Pattern.]]>
</Description>
</Member>
<Member Name="Vibration_Pattern" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On, 2 = 3 Pulses, 3 = SOS, 4 = Random.]]>
</Description>
</Member>
<Member Name="Vibration_Speed" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Slow, 1 = Medium, 2 = Fast, 3 = Custom.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_Indicator_PDIO_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT that records the converted prcoess data.]]>
</Description>
<Members>
<Member Name="PD_MC_State" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only active when Operation Mode set to 0.  State tells the light which of the four states it should be in.  0 = State 1, 1 = State 2, 2 = State 3, 3 = State 4.]]>
</Description>
</Member>
<Member Name="PD_4State" DataType="Banner_K50Select_Indicator_4State_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only active when Operation Mode set to 1.  Job Input tells the light how it should behave.  0 - Off, 1 = ON]]>
</Description>
</Member>
<Member Name="PD_Advanced" DataType="Banner_K50Select_Indicator_Adv_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only active when Operation Mode set to 2.]]>
</Description>
</Member>
<Member Name="PD_LED" DataType="Banner_K50Select_Indicator_LEDControl_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only active when Operation Mode set to 3.]]>
</Description>
</Member>
<Member Name="PDO_DT" DataType="SINT" Dimension="8" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_Indicator_4State_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_Indicator_Adv_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_Indicator_LEDControl_v4"/>
</Dependencies>
</DataType>
</DataTypes>
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="Banner_K50_Select_Indicator_PD_v4" Revision="4.0" Vendor="Banner Engineering" ExecutePrescan="false" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2017-05-23T12:32:51.947Z" CreatedBy="DUKE\2011324" EditedDate="2025-03-31T17:32:44.626Z" EditedBy="DUKE\jpreisen"
 SoftwareRevision="v33.03">
<Description>
<![CDATA[Takes the raw SINT information and converts that data into actual information.]]>
</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="PD" TagType="Base" DataType="Banner_K50Select_Indicator_PDIO_v4" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Operation_Mode" TagType="Base" DataType="SINT" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Linked from Parameters AOI or entered manually.]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="SINT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<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="PDO_Temp" DataType="SINT" Dimensions="8" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[[0,0,0,0,0,0,0,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Array DataType="SINT" Dimensions="8" Radix="Decimal">
<Element Index="[0]" Value="0"/>
<Element Index="[1]" Value="0"/>
<Element Index="[2]" Value="0"/>
<Element Index="[3]" Value="0"/>
<Element Index="[4]" Value="0"/>
<Element Index="[5]" Value="0"/>
<Element Index="[6]" Value="0"/>
<Element Index="[7]" Value="0"/>
</Array>
</DefaultData>
</LocalTag>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Comment>
<![CDATA[***********************************************************************************************
Section that converts the Process Data Outputs.
***********************************************************************************************]]>
</Comment>
<Text>
<![CDATA[EQU(Operation_Mode,0)BTD(PD.PD_MC_State,0,PDO_Temp[0],0,1);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Text>
<![CDATA[EQU(Operation_Mode,1)BTD(PD.PD_4State.PDO_Job_Control,0,PDO_Temp[0],0,1)BTD(PD.PD_4State.PDO_User_Input,0,PDO_Temp[0],0,2);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[EQU(Operation_Mode,2)BTD(PD.PD_Advanced.Animation_Type,0,PDO_Temp[0],0,4)BTD(PD.PD_Advanced.Direction,0,PDO_Temp[0],4,1)BTD(PD.PD_Advanced.Pattern,0,PDO_Temp[0],5,3)BTD(PD.PD_Advanced.Speed,0,PDO_Temp[1],0,2)BTD(PD.PD_Advanced.Static_Sequence,0,PDO_Temp[4],0,8)BTD(PD.PD_Advanced.Sequence_Start_Location,0,PDO_Temp[5],0,3)BTD(PD.PD_Advanced.Color_1,0,PDO_Temp[6],0,5)BTD(PD.PD_Advanced.Color_1_Intensity,0,PDO_Temp[6],5,3)BTD(PD.PD_Advanced.Color_2,0,PDO_Temp[7],0,5)BTD(PD.PD_Advanced.Color_2_Intensity,0,PDO_Temp[7],5,3);]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Text>
<![CDATA[EQU(Operation_Mode,3)BTD(PD.PD_LED.LED_1_Color,0,PDO_Temp[0],0,4)BTD(PD.PD_LED.LED_1_Intensity,0,PDO_Temp[0],4,4)BTD(PD.PD_LED.LED_2_Color,0,PDO_Temp[1],0,4)BTD(PD.PD_LED.LED_2_Intensity,0,PDO_Temp[1],4,4)BTD(PD.PD_LED.LED_3_Color,0,PDO_Temp[2],0,4)BTD(PD.PD_LED.LED_3_Intensity,0,PDO_Temp[2],4,4)BTD(PD.PD_LED.LED_4_Color,0,PDO_Temp[3],0,4)BTD(PD.PD_LED.LED_4_Intensity,0,PDO_Temp[3],4,4)BTD(PD.PD_LED.LED_5_Color,0,PDO_Temp[4],0,4)BTD(PD.PD_LED.LED_5_Intensity,0,PDO_Temp[4],4,4)BTD(PD.PD_LED.LED_6_Color,0,PDO_Temp[5],0,4)BTD(PD.PD_LED.LED_6_Intensity,0,PDO_Temp[5],4,4)BTD(PD.PD_LED.LED_7_Color,0,PDO_Temp[6],0,4)BTD(PD.PD_LED.LED_7_Intensity,0,PDO_Temp[6],4,4)BTD(PD.PD_LED.LED_8_Color,0,PDO_Temp[7],0,4)BTD(PD.PD_LED.LED_8_Intensity,0,PDO_Temp[7],4,4);]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[XIC(Byte_Swap)MOV(PDO_Temp[1],PD.PDO_DT[0])MOV(PDO_Temp[0],PD.PDO_DT[1])MOV(PDO_Temp[3],PD.PDO_DT[2])MOV(PDO_Temp[2],PD.PDO_DT[3])MOV(PDO_Temp[5],PD.PDO_DT[4])MOV(PDO_Temp[4],PD.PDO_DT[5])MOV(PDO_Temp[7],PD.PDO_DT[6])MOV(PDO_Temp[6],PD.PDO_DT[7]);]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Text>
<![CDATA[XIO(Byte_Swap)CPS(PDO_Temp[0],PD.PDO_DT[0],8);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_Indicator_PDIO_v4"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
