<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--AOI to read and write parameter data to an IO-Link K50 Pro Select.-->
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="33.03" TargetName="Banner_K50Select_Param_v4" TargetType="AddOnInstructionDefinition" TargetRevision="4.2 " TargetLastEdited="2025-04-09T12:22:40.758Z" ContainsContext="true" ExportDate="Wed Apr 09 07:27:01 2025" ExportOptions="References NoRawData L5KData DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="Test">
<DataTypes Use="Context">
<DataType Name="Banner_IOL_Port_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT that has all of the data items necessary to communicate with a specific Port on a IO-Link Master]]>
</Description>
<Members>
<Member Name="Port_Controlled" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Each bit represents a port on an IO-Link Master.  Set to 1 to tell AOI to control that port.]]>
</Description>
</Member>
<Member Name="Port_Activate" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Each bit represents a port on an IO-Link Master.  When ON that port will process any commands in queue.]]>
</Description>
</Member>
<Member Name="Port_Read" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Each bit represents a port on an IO-Link Master.  Used to determine when device AOI has requested a Read command.]]>
</Description>
</Member>
<Member Name="Port_Write" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Each bit represents a port on an IO-Link Master.  Used to determine when device AOI has requested a Write command.]]>
</Description>
</Member>
<Member Name="Port_RW_Complete" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Each bit represents a port on an IO-Link Master.  Tells device AOI that Read or Write request has been completed.]]>
</Description>
</Member>
<Member Name="Port_Device_Read" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Data_Transfer" DataType="SINT" Dimension="190" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Array to transfer data from IO-Master to device AOIs.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_DeviceLocks_v4" Family="NoFamily" Class="User">
<Members>
<Member Name="Parameter_Access_Lock" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Write access to all read/write parameters is block when this bit is ON.]]>
</Description>
</Member>
<Member Name="Data_Storage_Lock" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Data storage mechanism is inhibited when bit is ON.]]>
</Description>
</Member>
<Member Name="Local_Parameterization_Lock" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Parameteriation via local control elementes is inhibited.]]>
</Description>
</Member>
<Member Name="Local_User_Interface_Lock" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Operation of the hmi on the device is disabled.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_Direct_v4" Family="NoFamily" Class="User">
<Members>
<Member Name="Master_Cycle_Time" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Min_Cycle_Time" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="M_Sequence_Capability" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="IO_Link_Version_ID" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Process_Data_Input_Length" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Process_Data_Output_Length" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Combined_Vendor_ID" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[IO-Link Vendor ID]]>
</Description>
</Member>
<Member Name="Vendor_ID1" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Vendor_ID2" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Combined_Device_ID" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[IO-Link Device ID]]>
</Description>
</Member>
<Member Name="Device_ID1" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Device_ID2" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Device_ID3" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
</DataType>
<DataType Name="Banner_K50Select_InputSettings_v4" Family="NoFamily" Class="User">
<Members>
<Member Name="Touch_Sensitivity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[K50 Select touch models only. 0 = Low, 1 = High.]]>
</Description>
</Member>
<Member Name="Function" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Momentary, 1 = Latched.]]>
</Description>
</Member>
<Member Name="Mute_Enable" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On.]]>
</Description>
</Member>
<Member Name="On_Delay" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 65535 in ms.  Length of time the touch button needs to be pressed to trigger touch active state.]]>
</Description>
</Member>
<Member Name="Target_Threshold_Low" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[K50 Select Sensor Models Only. 0 to 1500 Range in mm.]]>
</Description>
</Member>
<Member Name="Targer_Threshold_High" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[K50 Select Sensor Models Only. 0 to 1500 Range in mm.]]>
</Description>
</Member>
<Member Name="Min_Distance" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[K50 Select Sensor Models Only. 0 to 1500 Range in mm.]]>
</Description>
</Member>
<Member Name="Max_Distance" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[K50 Select Sensor Models Only. 0 to 1500 Range in mm.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_Output_Settings_v4" Family="NoFamily" Class="User">
<Members>
<Member Name="Output_State" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = NO, 1 = NC.]]>
</Description>
</Member>
<Member Name="Off_Delay_Type" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Leading Edge, 1 = Trailing Edge.]]>
</Description>
</Member>
<Member Name="Off_Delay" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 65535 in ms. Length of time before the device returns to the 'touch inactive' state after button is released.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_RD_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT with all of the Read only parameters for K50 Pro Select.]]>
</Description>
<Members>
<Member Name="Direct_Parameters" DataType="Banner_K50Select_Direct_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Serial_Number" DataType="STRING" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_Direct_v4"/>
</Dependencies>
</DataType>
<DataType Name="Banner_K50Select_Settings_v4" Family="NoFamily" Class="User">
<Members>
<Member Name="Custom_Intensity" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 100 %]]>
</Description>
</Member>
<Member Name="Custom_Flash_Rate" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Range 5 to 200 (.5 to 20 converted rate).]]>
</Description>
</Member>
<Member Name="Restrict_to_Gamut" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Off, 1 = On.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_SP_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT for K50 Pro Select with the State Parameters structure.]]>
</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 = Sequence.]]>
</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="Reserved" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Off_Delay_Type" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 =Leading Edge, 1 = Trailing Edge.]]>
</Description>
</Member>
<Member Name="Off_Delay" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 to 65535 in ms.  Length of time before the device returns to 'touch inactive' state after button is released.]]>
</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 of the device.]]>
</Description>
</Member>
<Member Name="Sequence_Start_Location" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = LED1, 1 = LED2, 2 = LED3, 3 = LED4, 4 = LED5, 5 = LED6, 6 = LED7, 7 = LED8.]]>
</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>
<Member Name="Min_Distance" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only for K50 Pro Select Sensor Model. 0 to 1500 mm.]]>
</Description>
</Member>
<Member Name="Max_Distance" DataType="DINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only for K50 Pro Select Sensor Model. 0 to 1500 mm.]]>
</Description>
</Member>
<Member Name="Output_State" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Only for K50 Pro Select Sensor Model. 0=False, 1=True.]]>
</Description>
</Member>
</Members>
</DataType>
<DataType Name="Banner_K50Select_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT with all of the parameters for K50 Pro Select.]]>
</Description>
<Members>
<Member Name="ZZZZZZZZZZBanner_K500" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Initial_Global_Read" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZBanner_K500" BitNumber="0" ExternalAccess="Read/Write">
<Description>
<![CDATA[Determines if all of the IO-Link data has been read into the PLC yet]]>
</Description>
</Member>
<Member Name="Command" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Value placed in here will activate a read or write to a specifc IO-Link Index]]>
</Description>
</Member>
<Member Name="Read" DataType="Banner_K50Select_RD_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[All read data]]>
</Description>
</Member>
<Member Name="Write" DataType="Banner_K50Select_WD_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[All data that can be written to.]]>
</Description>
</Member>
<Member Name="Archive" DataType="Banner_K50Select_WD_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[Archive of the write data.]]>
</Description>
</Member>
<Member Name="ZZZZZZZZZZBanner_K506" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="true" ExternalAccess="Read/Write"/>
<Member Name="Reset" DataType="BIT" Dimension="0" Radix="Decimal" Hidden="false" Target="ZZZZZZZZZZBanner_K506" BitNumber="0" ExternalAccess="Read/Write"/>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_RD_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_WD_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_WD_v4"/>
</Dependencies>
</DataType>
<DataType Name="Banner_K50Select_WD_v4" Family="NoFamily" Class="User">
<Description>
<![CDATA[UDT that stores the  Write Data for a K50 Pro Select.]]>
</Description>
<Members>
<Member Name="System_Command" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[See IODD file for list of commands that can be activated via the System Command interface]]>
</Description>
</Member>
<Member Name="Device_Access_Locks" DataType="Banner_K50Select_DeviceLocks_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Operation_Mode" DataType="SINT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0 = Multicolor, 1 = Four State Full Logic, 2 = Advanced, 3 = LED Control, 4 = Demo.]]>
</Description>
</Member>
<Member Name="Settings" DataType="Banner_K50Select_Settings_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Input_Settings" DataType="Banner_K50Select_InputSettings_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="Output_Settings" DataType="Banner_K50Select_Output_Settings_v4" Dimension="0" Radix="NullType" Hidden="false" ExternalAccess="Read/Write"/>
<Member Name="State_Parameters" DataType="Banner_K50Select_SP_v4" Dimension="6" Radix="NullType" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[State Parameters.  1 through 4 will have values.]]>
</Description>
</Member>
<Member Name="CC1_Red" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 1 Red.]]>
</Description>
</Member>
<Member Name="CC1_Green" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 1 Green.]]>
</Description>
</Member>
<Member Name="CC1_Blue" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 1 Blue.]]>
</Description>
</Member>
<Member Name="CC2_Red" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 2 Red.]]>
</Description>
</Member>
<Member Name="CC2_Green" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 2 Green.]]>
</Description>
</Member>
<Member Name="CC2_Blue" DataType="INT" Dimension="0" Radix="Decimal" Hidden="false" ExternalAccess="Read/Write">
<Description>
<![CDATA[0-255.  Custom 2 Blue.]]>
</Description>
</Member>
</Members>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_DeviceLocks_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_Settings_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_InputSettings_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_Output_Settings_v4"/>
<Dependency Type="DataType" Name="Banner_K50Select_SP_v4"/>
</Dependencies>
</DataType>
</DataTypes>
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="Banner_K50Select_Param_v4" Revision="4.2" Vendor="Banner Engineering" ExecutePrescan="false" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2017-05-04T16:29:17.778Z" CreatedBy="DUKE\2011324" EditedDate="2025-04-09T12:22:40.758Z" EditedBy="DUKE\jpreisen"
 SoftwareRevision="v33.03">
<Description>
<![CDATA[AOI to read and write parameter data to an IO-Link K50 Pro Select.]]>
</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="K50" TagType="Base" DataType="Banner_K50Select_v4" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Port_Data" TagType="Base" DataType="Banner_IOL_Port_v4" Usage="InOut" Required="true" Visible="true" Constant="false"/>
<Parameter Name="Port" TagType="Base" DataType="DINT" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Type" TagType="Base" DataType="DINT" Usage="Input" Radix="Decimal" Required="true" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[1=Sensor, 2=Touch, 3=Indicator]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
</Parameters>
<LocalTags>
<LocalTag Name="Local_Control" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Global_Read_Command_Value" DataType="INT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="INT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Global_Write_Command_Value" DataType="INT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="INT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Command_Being_Processed" 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="Update_Archive" 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="Index_Write_Control" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Index_Write_Inprocess" DataType="INT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="INT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="Temp_Excess_Gain" DataType="DINT" Dimensions="2" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[[0,0]]]>
</DefaultData>
<DefaultData Format="Decorated">
<Array DataType="DINT" Dimensions="2" Radix="Decimal">
<Element Index="[0]" Value="0"/>
<Element Index="[1]" Value="0"/>
</Array>
</DefaultData>
</LocalTag>
<LocalTag Name="Inprocess_Index" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="SP_Index" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<Description>
<![CDATA[State Parameters Index]]>
</Description>
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="SP_Write_Index" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="SP_R_Index" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
<LocalTag Name="SP_W_Index" DataType="DINT" Radix="Decimal" ExternalAccess="None">
<DefaultData Format="L5K">
<![CDATA[0]]>
</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="DINT" Radix="Decimal" Value="0"/>
</DefaultData>
</LocalTag>
</LocalTags>
<Routines>
<Routine Name="Logic" Type="RLL">
<RLLContent>
<Rung Number="0" Type="N">
<Text>
<![CDATA[XIC(K50.Reset)OTU(K50.Initial_Global_Read)OTU(Command_Being_Processed)MOV(0,K50.Command)MOV(0,Index_Write_Inprocess)MOV(0,Index_Write_Control)MOV(0,Global_Read_Command_Value)MOV(0,Global_Write_Command_Value)MOV(0,Local_Control)OTU(K50.Reset);]]>
</Text>
</Rung>
<Rung Number="1" Type="N">
<Text>
<![CDATA[MOV(0,Port_Data.Data_Transfer[186]);]]>
</Text>
</Rung>
<Rung Number="2" Type="N">
<Comment>
<![CDATA[*****Check to see if the Global Read command has been activated.  The next few rungs control reading of all LTF parameters.*****]]>
</Comment>
<Text>
<![CDATA[XIO(K50.Reset)[XIO(K50.Initial_Global_Read) ,EQU(K50.Command,1) ,XIC(Port_Data.Port_Device_Read.[Port]) ]XIO(Local_Control.0)XIO(Local_Control.2)MOV(1,Global_Read_Command_Value)MOV(0,K50.Command)OTU(Port_Data.Port_Device_Read.[Port])OTL(Local_Control.0);]]>
</Text>
</Rung>
<Rung Number="3" Type="N">
<Text>
<![CDATA[XIO(K50.Reset)XIC(Local_Control.0)XIO(Local_Control.1)LES(Global_Read_Command_Value,17)ADD(Global_Read_Command_Value,1,Global_Read_Command_Value)MOV(Global_Read_Command_Value,K50.Command)OTL(Local_Control.1);]]>
</Text>
</Rung>
<Rung Number="4" Type="N">
<Text>
<![CDATA[XIO(K50.Reset)XIC(Local_Control.0)GEQ(Global_Read_Command_Value,17)MOV(1,Global_Read_Command_Value)MOV(0,K50.Command)OTL(K50.Initial_Global_Read)OTU(Local_Control.0)OTU(Local_Control.1);]]>
</Text>
</Rung>
<Rung Number="5" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="6" Type="N">
<Comment>
<![CDATA[Global Read command logic.]]>
</Comment>
<Text>
<![CDATA[XIC(Local_Control.4)XIO(Local_Control.5)XIC(Port_Data.Port_RW_Complete.[Port])OTL(Local_Control.5);]]>
</Text>
</Rung>
<Rung Number="7" Type="N">
<Text>
<![CDATA[XIC(Local_Control.6)XIO(Port_Data.Port_RW_Complete.[Port])MOV(0,K50.Command)OTU(Local_Control.1)OTU(Command_Being_Processed)OTU(Local_Control.4)OTU(Local_Control.5)OTU(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="8" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="9" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the direct parameters (index 0).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,2)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(0,Port_Data.Data_Transfer[188])MOV(16,Port_Data.Data_Transfer[189])MOV(0,K50.Read.Direct_Parameters.Combined_Vendor_ID)OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="10" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,2)BTD(Port_Data.Data_Transfer[1],0,K50.Read.Direct_Parameters.Master_Cycle_Time,0,8)BTD(Port_Data.Data_Transfer[2],0,K50.Read.Direct_Parameters.Min_Cycle_Time,0,8)BTD(Port_Data.Data_Transfer[3],0,K50.Read.Direct_Parameters.M_Sequence_Capability,0,8)BTD(Port_Data.Data_Transfer[4],0,K50.Read.Direct_Parameters.IO_Link_Version_ID,0,8)BTD(Port_Data.Data_Transfer[5],0,K50.Read.Direct_Parameters.Process_Data_Input_Length,0,8)BTD(Port_Data.Data_Transfer[6],0,K50.Read.Direct_Parameters.Process_Data_Output_Length,0,8)BTD(Port_Data.Data_Transfer[7],0,K50.Read.Direct_Parameters.Combined_Vendor_ID,8,8)BTD(Port_Data.Data_Transfer[8],0,K50.Read.Direct_Parameters.Combined_Vendor_ID,0,8)MOV(Port_Data.Data_Transfer[7],K50.Read.Direct_Parameters.Vendor_ID1)MOV(Port_Data.Data_Transfer[8],K50.Read.Direct_Parameters.Vendor_ID2)BTD(Port_Data.Data_Transfer[9],0,K50.Read.Direct_Parameters.Combined_Device_ID,16,8)BTD(Port_Data.Data_Transfer[10],0,K50.Read.Direct_Parameters.Combined_Device_ID,8,8)BTD(Port_Data.Data_Transfer[11],0,K50.Read.Direct_Parameters.Combined_Device_ID,0,8)MOV(Port_Data.Data_Transfer[9],K50.Read.Direct_Parameters.Device_ID1)MOV(Port_Data.Data_Transfer[10],K50.Read.Direct_Parameters.Device_ID2)MOV(Port_Data.Data_Transfer[11],K50.Read.Direct_Parameters.Device_ID3)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="11" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="12" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Reserved.
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,3)OTL(Command_Being_Processed)OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="13" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="14" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Device Access Locks parameters (index 12).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,4)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(12,Port_Data.Data_Transfer[188])MOV(2,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="15" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,4)BTD(Port_Data.Data_Transfer[1],0,K50.Write.Device_Access_Locks.Parameter_Access_Lock,0,1)BTD(Port_Data.Data_Transfer[1],1,K50.Write.Device_Access_Locks.Data_Storage_Lock,0,1)BTD(Port_Data.Data_Transfer[1],2,K50.Write.Device_Access_Locks.Local_Parameterization_Lock,0,1)BTD(Port_Data.Data_Transfer[1],3,K50.Write.Device_Access_Locks.Local_User_Interface_Lock,0,1)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="16" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="17" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Serial Number parameter (index 21).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,5)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(21,Port_Data.Data_Transfer[188])MOV(16,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="18" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,5)MOV(16,K50.Read.Serial_Number.LEN)CPS(Port_Data.Data_Transfer[0],K50.Read.Serial_Number.DATA[0],16)MOV(Port_Data.Data_Transfer[0],K50.Read.Serial_Number.DATA[0])MOV(Port_Data.Data_Transfer[1],K50.Read.Serial_Number.DATA[1])MOV(Port_Data.Data_Transfer[2],K50.Read.Serial_Number.DATA[2])MOV(Port_Data.Data_Transfer[3],K50.Read.Serial_Number.DATA[3])MOV(Port_Data.Data_Transfer[4],K50.Read.Serial_Number.DATA[4])MOV(Port_Data.Data_Transfer[5],K50.Read.Serial_Number.DATA[5])MOV(Port_Data.Data_Transfer[6],K50.Read.Serial_Number.DATA[6])MOV(Port_Data.Data_Transfer[7],K50.Read.Serial_Number.DATA[7])MOV(Port_Data.Data_Transfer[8],K50.Read.Serial_Number.DATA[8])MOV(Port_Data.Data_Transfer[9],K50.Read.Serial_Number.DATA[9])MOV(Port_Data.Data_Transfer[10],K50.Read.Serial_Number.DATA[10])MOV(Port_Data.Data_Transfer[11],K50.Read.Serial_Number.DATA[11])MOV(Port_Data.Data_Transfer[12],K50.Read.Serial_Number.DATA[12])MOV(Port_Data.Data_Transfer[13],K50.Read.Serial_Number.DATA[13])MOV(Port_Data.Data_Transfer[14],K50.Read.Serial_Number.DATA[14])MOV(Port_Data.Data_Transfer[15],K50.Read.Serial_Number.DATA[15])OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="19" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="20" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Operation Mode parameter (index 80).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,6)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(80,Port_Data.Data_Transfer[188])MOV(1,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="21" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,6)BTD(Port_Data.Data_Transfer[0],0,K50.Write.Operation_Mode,0,8)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="22" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="23" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Settings parameter (index 81).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,7)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(81,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="24" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,7)BTD(Port_Data.Data_Transfer[0],0,K50.Write.Settings.Restrict_to_Gamut,0,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.Settings.Custom_Flash_Rate,0,8)BTD(Port_Data.Data_Transfer[2],0,K50.Write.Settings.Custom_Intensity,0,8)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="25" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="26" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Input Settings parameter (index 82).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,8)[EQU(Type,1) MOV(11,Port_Data.Data_Transfer[189]) ,EQU(Type,2) MOV(3,Port_Data.Data_Transfer[189]) ]OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(82,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="27" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,8)EQU(Type,3)OTL(Command_Being_Processed)OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="28" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,8)EQU(Type,1)BTD(Port_Data.Data_Transfer[0],0,K50.Write.Input_Settings.Max_Distance,8,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.Input_Settings.Max_Distance,0,8)BTD(Port_Data.Data_Transfer[2],0,K50.Write.Input_Settings.Min_Distance,8,8)BTD(Port_Data.Data_Transfer[3],0,K50.Write.Input_Settings.Min_Distance,0,8)BTD(Port_Data.Data_Transfer[4],0,K50.Write.Input_Settings.Targer_Threshold_High,8,8)BTD(Port_Data.Data_Transfer[5],0,K50.Write.Input_Settings.Targer_Threshold_High,0,8)BTD(Port_Data.Data_Transfer[6],0,K50.Write.Input_Settings.Target_Threshold_Low,8,8)BTD(Port_Data.Data_Transfer[7],0,K50.Write.Input_Settings.Target_Threshold_Low,0,8)BTD(Port_Data.Data_Transfer[8],0,K50.Write.Input_Settings.On_Delay,8,8)BTD(Port_Data.Data_Transfer[9],0,K50.Write.Input_Settings.On_Delay,0,8)BTD(Port_Data.Data_Transfer[8],0,K50.Write.Input_Settings.On_Delay,8,8)BTD(Port_Data.Data_Transfer[9],0,K50.Write.Input_Settings.On_Delay,0,8)BTD(Port_Data.Data_Transfer[10],1,K50.Write.Input_Settings.Mute_Enable,0,1)BTD(Port_Data.Data_Transfer[10],0,K50.Write.Input_Settings.Function,0,1)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="29" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,8)EQU(Type,2)BTD(Port_Data.Data_Transfer[0],0,K50.Write.Input_Settings.On_Delay,8,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.Input_Settings.On_Delay,0,8)BTD(Port_Data.Data_Transfer[2],3,K50.Write.Input_Settings.Mute_Enable,0,1)BTD(Port_Data.Data_Transfer[2],2,K50.Write.Input_Settings.Function,0,1)BTD(Port_Data.Data_Transfer[2],0,K50.Write.Input_Settings.Touch_Sensitivity,0,2)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="30" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="31" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Output Settings parameter (index 83).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,9)[EQU(Type,1) ,EQU(Type,2) ]OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(83,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="32" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,9)EQU(Type,3)OTL(Command_Being_Processed)OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="33" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,9)BTD(Port_Data.Data_Transfer[0],0,K50.Write.Output_Settings.Off_Delay,8,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.Output_Settings.Off_Delay,0,8)BTD(Port_Data.Data_Transfer[2],1,K50.Write.Output_Settings.Off_Delay_Type,0,1)BTD(Port_Data.Data_Transfer[2],0,K50.Write.Output_Settings.Output_State,0,1)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="34" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="35" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the State Parameters (indexes 84 through 88).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)GEQ(K50.Command,10)LEQ(K50.Command,14)EQU(Type,1)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])ADD(74,K50.Command,Port_Data.Data_Transfer[188])MOV(13,Port_Data.Data_Transfer[189])SUB(K50.Command,9,SP_R_Index)OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="36" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)GEQ(K50.Command,10)LEQ(K50.Command,13)[EQU(Type,2) ,EQU(Type,3) ]OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])ADD(74,K50.Command,Port_Data.Data_Transfer[188])MOV(8,Port_Data.Data_Transfer[189])SUB(K50.Command,9,SP_R_Index)OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="37" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,14)[EQU(Type,2) ,EQU(Type,3) ]OTL(Command_Being_Processed)OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="38" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)GEQ(K50.Command,10)LEQ(K50.Command,14)EQU(Type,1)BTD(Port_Data.Data_Transfer[0],0,K50.Write.State_Parameters[SP_R_Index].Output_State,0,1)BTD(Port_Data.Data_Transfer[1],0,K50.Write.State_Parameters[SP_R_Index].Max_Distance,8,8)BTD(Port_Data.Data_Transfer[2],0,K50.Write.State_Parameters[SP_R_Index].Max_Distance,0,8)BTD(Port_Data.Data_Transfer[3],0,K50.Write.State_Parameters[SP_R_Index].Min_Distance,8,8)BTD(Port_Data.Data_Transfer[4],0,K50.Write.State_Parameters[SP_R_Index].Min_Distance,0,8)BTD(Port_Data.Data_Transfer[5],5,K50.Write.State_Parameters[SP_R_Index].Color_2_Intensity,0,3)BTD(Port_Data.Data_Transfer[5],0,K50.Write.State_Parameters[SP_R_Index].Color_2,0,5)BTD(Port_Data.Data_Transfer[6],5,K50.Write.State_Parameters[SP_R_Index].Color_1_Intensity,0,3)BTD(Port_Data.Data_Transfer[6],0,K50.Write.State_Parameters[SP_R_Index].Color_1,0,5)BTD(Port_Data.Data_Transfer[7],0,K50.Write.State_Parameters[SP_R_Index].Sequence_Start_Location,0,8)BTD(Port_Data.Data_Transfer[8],0,K50.Write.State_Parameters[SP_R_Index].Static_Sequence,0,8)BTD(Port_Data.Data_Transfer[9],0,K50.Write.State_Parameters[SP_R_Index].Off_Delay,8,8)BTD(Port_Data.Data_Transfer[10],0,K50.Write.State_Parameters[SP_R_Index].Off_Delay,0,8)BTD(Port_Data.Data_Transfer[11],4,K50.Write.State_Parameters[SP_R_Index].Off_Delay_Type,0,1)BTD(Port_Data.Data_Transfer[11],0,K50.Write.State_Parameters[SP_R_Index].Speed,0,2)BTD(Port_Data.Data_Transfer[12],5,K50.Write.State_Parameters[SP_R_Index].Pattern,0,3)BTD(Port_Data.Data_Transfer[12],4,K50.Write.State_Parameters[SP_R_Index].Direction,0,1)BTD(Port_Data.Data_Transfer[12],0,K50.Write.State_Parameters[SP_R_Index].Animation_Type,0,4)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="39" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)GEQ(K50.Command,10)LEQ(K50.Command,13)[EQU(Type,2) ,EQU(Type,3) ]BTD(Port_Data.Data_Transfer[0],5,K50.Write.State_Parameters[SP_R_Index].Color_2_Intensity,0,3)BTD(Port_Data.Data_Transfer[0],0,K50.Write.State_Parameters[SP_R_Index].Color_2,0,5)BTD(Port_Data.Data_Transfer[1],5,K50.Write.State_Parameters[SP_R_Index].Color_1_Intensity,0,3)BTD(Port_Data.Data_Transfer[1],0,K50.Write.State_Parameters[SP_R_Index].Color_1,0,5)BTD(Port_Data.Data_Transfer[2],0,K50.Write.State_Parameters[SP_R_Index].Sequence_Start_Location,0,8)BTD(Port_Data.Data_Transfer[3],0,K50.Write.State_Parameters[SP_R_Index].Static_Sequence,0,8)BTD(Port_Data.Data_Transfer[4],0,K50.Write.State_Parameters[SP_R_Index].Off_Delay,8,8)BTD(Port_Data.Data_Transfer[5],0,K50.Write.State_Parameters[SP_R_Index].Off_Delay,0,8)BTD(Port_Data.Data_Transfer[6],4,K50.Write.State_Parameters[SP_R_Index].Off_Delay_Type,0,1)BTD(Port_Data.Data_Transfer[6],0,K50.Write.State_Parameters[SP_R_Index].Speed,0,2)BTD(Port_Data.Data_Transfer[7],5,K50.Write.State_Parameters[SP_R_Index].Pattern,0,3)BTD(Port_Data.Data_Transfer[7],4,K50.Write.State_Parameters[SP_R_Index].Direction,0,1)BTD(Port_Data.Data_Transfer[7],0,K50.Write.State_Parameters[SP_R_Index].Animation_Type,0,4)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="40" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="41" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Custom Color 1 Cofiguration parameter (index 89).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,15)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(89,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="42" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,15)BTD(Port_Data.Data_Transfer[0],0,K50.Write.CC1_Blue,0,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.CC1_Green,0,8)BTD(Port_Data.Data_Transfer[2],0,K50.Write.CC1_Red,0,8)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="43" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="44" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls reading of the Custom Color 2 Cofiguration parameter (index 90).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.4)EQU(K50.Command,16)OTL(Command_Being_Processed)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(90,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])OTL(Port_Data.Port_Read.[Port])OTL(Local_Control.4);]]>
</Text>
</Rung>
<Rung Number="45" Type="N">
<Text>
<![CDATA[XIC(Local_Control.5)XIO(Local_Control.6)EQU(K50.Command,16)BTD(Port_Data.Data_Transfer[0],0,K50.Write.CC2_Blue,0,8)BTD(Port_Data.Data_Transfer[1],0,K50.Write.CC2_Green,0,8)BTD(Port_Data.Data_Transfer[2],0,K50.Write.CC2_Red,0,8)OTU(Port_Data.Port_Read.[Port])OTL(Local_Control.6);]]>
</Text>
</Rung>
<Rung Number="46" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="47" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Standard Command parameter (index 2).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,43)OTL(Command_Being_Processed)BTD(K50.Write.System_Command,0,Port_Data.Data_Transfer[0],0,8)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(2,Port_Data.Data_Transfer[188])MOV(1,Port_Data.Data_Transfer[189])MOV(0,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="48" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="49" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Device Access Locks parameter (index 12).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,44)OTL(Command_Being_Processed)MOV(0,Port_Data.Data_Transfer[0])MOV(0,Port_Data.Data_Transfer[1])BTD(K50.Write.Device_Access_Locks.Parameter_Access_Lock,0,Port_Data.Data_Transfer[1],0,1)BTD(K50.Write.Device_Access_Locks.Data_Storage_Lock,0,Port_Data.Data_Transfer[1],1,1)BTD(K50.Write.Device_Access_Locks.Local_Parameterization_Lock,0,Port_Data.Data_Transfer[1],2,1)BTD(K50.Write.Device_Access_Locks.Local_User_Interface_Lock,0,Port_Data.Data_Transfer[1],3,1)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(12,Port_Data.Data_Transfer[188])MOV(2,Port_Data.Data_Transfer[189])MOV(1,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="50" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="51" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Operation Mode parameter (index 80).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,46)OTL(Command_Being_Processed)BTD(K50.Write.Operation_Mode,0,Port_Data.Data_Transfer[0],0,8)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(80,Port_Data.Data_Transfer[188])MOV(1,Port_Data.Data_Transfer[189])MOV(2,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="52" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="53" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Settings parameter (index 81).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,47)OTL(Command_Being_Processed)BTD(K50.Write.Settings.Restrict_to_Gamut,0,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.Settings.Custom_Flash_Rate,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.Settings.Custom_Intensity,0,Port_Data.Data_Transfer[2],0,8)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(81,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])MOV(3,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="54" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="55" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Input Settings parameter (index 82).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,48)EQU(Type,1)OTL(Command_Being_Processed)BTD(K50.Write.Input_Settings.Max_Distance,8,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.Input_Settings.Max_Distance,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.Input_Settings.Min_Distance,8,Port_Data.Data_Transfer[2],0,8)BTD(K50.Write.Input_Settings.Min_Distance,0,Port_Data.Data_Transfer[3],0,8)BTD(K50.Write.Input_Settings.Targer_Threshold_High,8,Port_Data.Data_Transfer[4],0,8)BTD(K50.Write.Input_Settings.Targer_Threshold_High,0,Port_Data.Data_Transfer[5],0,8)BTD(K50.Write.Input_Settings.Target_Threshold_Low,8,Port_Data.Data_Transfer[6],0,8)BTD(K50.Write.Input_Settings.Target_Threshold_Low,0,Port_Data.Data_Transfer[7],0,8)BTD(K50.Write.Input_Settings.On_Delay,8,Port_Data.Data_Transfer[8],0,8)BTD(K50.Write.Input_Settings.On_Delay,0,Port_Data.Data_Transfer[9],0,8)BTD(K50.Write.Input_Settings.Mute_Enable,0,Port_Data.Data_Transfer[10],1,1)BTD(K50.Write.Input_Settings.Function,0,Port_Data.Data_Transfer[10],0,1)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(82,Port_Data.Data_Transfer[188])MOV(11,Port_Data.Data_Transfer[189])MOV(4,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="56" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,48)EQU(Type,2)OTL(Command_Being_Processed)BTD(K50.Write.Input_Settings.On_Delay,8,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.Input_Settings.On_Delay,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.Input_Settings.Mute_Enable,0,Port_Data.Data_Transfer[2],3,1)BTD(K50.Write.Input_Settings.Function,0,Port_Data.Data_Transfer[2],2,1)BTD(K50.Write.Input_Settings.Touch_Sensitivity,0,Port_Data.Data_Transfer[2],0,2)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(82,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])MOV(4,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="57" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,48)EQU(Type,3)OTL(Command_Being_Processed)OTL(Local_Control.12);]]>
</Text>
</Rung>
<Rung Number="58" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="59" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Output Settings parameter (index 83).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,49)[EQU(Type,1) ,EQU(Type,2) ]OTL(Command_Being_Processed)BTD(K50.Write.Output_Settings.Off_Delay,8,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.Output_Settings.Off_Delay,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.Output_Settings.Off_Delay_Type,0,Port_Data.Data_Transfer[2],1,1)BTD(K50.Write.Output_Settings.Output_State,0,Port_Data.Data_Transfer[2],0,1)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(83,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])MOV(5,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="60" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,49)EQU(Type,3)OTL(Command_Being_Processed)OTL(Local_Control.12);]]>
</Text>
</Rung>
<Rung Number="61" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="62" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the State Parameters 1 through 5 (indexes 84 through 88).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)GEQ(K50.Command,50)LEQ(K50.Command,54)EQU(Type,1)OTL(Command_Being_Processed)SUB(K50.Command,49,SP_W_Index)BTD(K50.Write.State_Parameters[SP_W_Index].Output_State,0,Port_Data.Data_Transfer[0],0,1)BTD(K50.Write.State_Parameters[SP_W_Index].Max_Distance,8,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Max_Distance,0,Port_Data.Data_Transfer[2],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Min_Distance,8,Port_Data.Data_Transfer[3],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Min_Distance,0,Port_Data.Data_Transfer[4],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Color_2_Intensity,0,Port_Data.Data_Transfer[5],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Color_2,0,Port_Data.Data_Transfer[5],0,5)BTD(K50.Write.State_Parameters[SP_W_Index].Color_1_Intensity,0,Port_Data.Data_Transfer[6],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Color_1,0,Port_Data.Data_Transfer[6],0,5)BTD(K50.Write.State_Parameters[SP_W_Index].Sequence_Start_Location,0,Port_Data.Data_Transfer[7],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Static_Sequence,0,Port_Data.Data_Transfer[8],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay,8,Port_Data.Data_Transfer[9],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay,0,Port_Data.Data_Transfer[10],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay_Type,0,Port_Data.Data_Transfer[11],4,1)BTD(K50.Write.State_Parameters[SP_W_Index].Speed,0,Port_Data.Data_Transfer[11],0,2)BTD(K50.Write.State_Parameters[SP_W_Index].Pattern,0,Port_Data.Data_Transfer[12],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Direction,0,Port_Data.Data_Transfer[12],4,1)BTD(K50.Write.State_Parameters[SP_W_Index].Animation_Type,0,Port_Data.Data_Transfer[12],0,4)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])ADD(K50.Command,34,Port_Data.Data_Transfer[188])MOV(13,Port_Data.Data_Transfer[189])ADD(SP_Index,5,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="63" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)GEQ(K50.Command,50)LEQ(K50.Command,53)[EQU(Type,2) ,EQU(Type,3) ]OTL(Command_Being_Processed)SUB(K50.Command,49,SP_W_Index)BTD(K50.Write.State_Parameters[SP_W_Index].Color_2_Intensity,0,Port_Data.Data_Transfer[0],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Color_2,0,Port_Data.Data_Transfer[0],0,5)BTD(K50.Write.State_Parameters[SP_W_Index].Color_1_Intensity,0,Port_Data.Data_Transfer[1],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Color_1,0,Port_Data.Data_Transfer[1],0,5)BTD(K50.Write.State_Parameters[SP_W_Index].Sequence_Start_Location,0,Port_Data.Data_Transfer[2],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Static_Sequence,0,Port_Data.Data_Transfer[3],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay,8,Port_Data.Data_Transfer[4],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay,0,Port_Data.Data_Transfer[5],0,8)BTD(K50.Write.State_Parameters[SP_W_Index].Off_Delay_Type,0,Port_Data.Data_Transfer[6],4,1)BTD(K50.Write.State_Parameters[SP_W_Index].Speed,0,Port_Data.Data_Transfer[6],0,2)BTD(K50.Write.State_Parameters[SP_W_Index].Pattern,0,Port_Data.Data_Transfer[7],5,3)BTD(K50.Write.State_Parameters[SP_W_Index].Direction,0,Port_Data.Data_Transfer[7],4,1)BTD(K50.Write.State_Parameters[SP_W_Index].Animation_Type,0,Port_Data.Data_Transfer[7],0,4)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])ADD(K50.Command,34,Port_Data.Data_Transfer[188])MOV(8,Port_Data.Data_Transfer[189])ADD(SP_Index,5,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="64" Type="N">
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)LEQ(K50.Command,54)[EQU(Type,2) ,EQU(Type,3) ]OTL(Command_Being_Processed)OTL(Local_Control.12);]]>
</Text>
</Rung>
<Rung Number="65" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="66" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Custom Color 1 Configuration parameter (index 89).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,55)OTL(Command_Being_Processed)BTD(K50.Write.CC1_Blue,0,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.CC1_Green,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.CC1_Red,0,Port_Data.Data_Transfer[2],0,8)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(89,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])MOV(10,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="67" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="68" Type="N">
<Comment>
<![CDATA[************************************************************************************************************
Section of AOI that controls writing of the Custom Color 2 Configuration parameter (index 90).
************************************************************************************************************]]>
</Comment>
<Text>
<![CDATA[XIO(Command_Being_Processed)XIO(Local_Control.11)EQU(K50.Command,56)OTL(Command_Being_Processed)BTD(K50.Write.CC2_Blue,0,Port_Data.Data_Transfer[0],0,8)BTD(K50.Write.CC2_Green,0,Port_Data.Data_Transfer[1],0,8)BTD(K50.Write.CC2_Red,0,Port_Data.Data_Transfer[2],0,8)MOV(Port,Port_Data.Data_Transfer[185])MOV(0,Port_Data.Data_Transfer[187])MOV(90,Port_Data.Data_Transfer[188])MOV(3,Port_Data.Data_Transfer[189])MOV(11,Inprocess_Index)OTL(Port_Data.Port_Write.[Port])OTL(Local_Control.11);]]>
</Text>
</Rung>
<Rung Number="69" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="70" Type="N">
<Comment>
<![CDATA[Global Write Commands]]>
</Comment>
<Text>
<![CDATA[XIC(Local_Control.11)XIO(Local_Control.12)XIC(Port_Data.Port_RW_Complete.[Port])OTU(Port_Data.Port_Write.[Port])OTL(Local_Control.12);]]>
</Text>
</Rung>
<Rung Number="71" Type="N">
<Text>
<![CDATA[XIC(Local_Control.12)XIO(Port_Data.Port_RW_Complete.[Port])MOV(0,K50.Command)OTU(Index_Write_Inprocess.[Inprocess_Index])OTU(Local_Control.3)OTU(Command_Being_Processed)OTU(Local_Control.11)OTU(Local_Control.12);]]>
</Text>
</Rung>
<Rung Number="72" Type="N">
<Text>
<![CDATA[NOP();]]>
</Text>
</Rung>
<Rung Number="73" Type="N">
<Text>
<![CDATA[EQU(Local_Control,0)OTU(Port_Data.Port_Activate.[Port]);]]>
</Text>
</Rung>
</RLLContent>
</Routine>
</Routines>
<Dependencies>
<Dependency Type="DataType" Name="Banner_K50Select_v4"/>
<Dependency Type="DataType" Name="Banner_IOL_Port_v4"/>
</Dependencies>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
