<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RSLogix5000Content SchemaRevision="1.0" SoftwareRevision="20.01" TargetName="T2CON" TargetType="AddOnInstructionDefinition" TargetRevision="1.0 " TargetLastEdited="2015-04-29T16:02:22.567Z" ContainsContext="true" Owner="Exlar, Exlar" ExportDate="Mon May 04 14:49:41 2015" ExportOptions="References DecoratedData Context Dependencies ForceProtectedEncoding AllProjDocTrans">
<Controller Use="Context" Name="Exlar_AOI_Sample_Project_v1_0">
<DataTypes Use="Context">
</DataTypes>
<AddOnInstructionDefinitions Use="Context">
<AddOnInstructionDefinition Use="Target" Name="T2CON" Revision="1.0" Vendor="Exlar Corporation" ExecutePrescan="false" ExecutePostscan="false" ExecuteEnableInFalse="false" CreatedDate="2014-04-17T15:26:33.375Z" CreatedBy="INT\jalvarez" EditedDate="2015-04-29T16:02:22.567Z" EditedBy="INT\jalvarez"
 SoftwareRevision="v20.01">
<AdditionalHelpText>
<![CDATA[Use the Tritex 2 Control (T2CON) instruction to send commands to drive.
Module commands includes enabling the drive, defining Home and Motion commands like Stop and Pause.

Configured for Exlar EIP AOI. 07/01/2014

----------------------------------------------------------------------------------------------------------------------------
Parameters Bit Definition
----------------------------------------------------------------------------------------------------------------------------

Module:  (Input) Tritex 2 Module Commands       
------------------------------------------------------------------
     Module.0:     Enable Momentary 
     Module.1:     Enable Maintained
     Module.2:     Define Home 
     Module.3:     Brake Override 
     Module.4:     Fault Reset

Motion:  (Input) Tritex 2 Motion Commands      
------------------------------------------------------------------
     Motion.0:     Stop Motion
     Motion.1:     Pause Move
     Motion.2:     Initiate Home Move 
     Motion.3:     Emergency Move]]>
</AdditionalHelpText>
<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="ModuleInputs" TagType="Base" DataType="INT" Dimensions="101" Usage="InOut" Radix="Decimal" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Module Input Array]]>
</Description>
</Parameter>
<Parameter Name="ModuleOutputs" TagType="Base" DataType="INT" Dimensions="101" Usage="InOut" Radix="Decimal" Required="true" Visible="true" Constant="false">
<Description>
<![CDATA[Module Output Array]]>
</Description>
</Parameter>
<Parameter Name="Module" TagType="Base" DataType="INT" Usage="Input" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Module Commands]]>
</Description>
<DefaultData>00 00</DefaultData>
<Comments>
<Comment Operand=".0">
<![CDATA[Enable Momentary]]>
</Comment>
<Comment Operand=".1">
<![CDATA[Enable Maintained]]>
</Comment>
<Comment Operand=".2">
<![CDATA[Define Home]]>
</Comment>
<Comment Operand=".3">
<![CDATA[Brake Override]]>
</Comment>
<Comment Operand=".4">
<![CDATA[Fault Reset]]>
</Comment>
</Comments>
<DefaultData Format="Decorated">
<DataValue DataType="INT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="Motion" TagType="Base" DataType="INT" Usage="Input" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read/Write">
<Description>
<![CDATA[Motion Commands]]>
</Description>
<DefaultData>00 00</DefaultData>
<Comments>
<Comment Operand=".0">
<![CDATA[Stop Motion]]>
</Comment>
<Comment Operand=".1">
<![CDATA[Pause Move]]>
</Comment>
<Comment Operand=".2">
<![CDATA[Initiate Home Move]]>
</Comment>
<Comment Operand=".3">
<![CDATA[Emergency Move]]>
</Comment>
</Comments>
<DefaultData Format="Decorated">
<DataValue DataType="INT" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
<Parameter Name="DF" TagType="Base" DataType="BOOL" Usage="Output" Radix="Decimal" Required="false" Visible="true" ExternalAccess="Read Only">
<Description>
<![CDATA[Indicates one or more Drive Faults are Active]]>
</Description>
<DefaultData>00</DefaultData>
<DefaultData Format="Decorated">
<DataValue DataType="BOOL" Radix="Decimal" Value="0"/>
</DefaultData>
</Parameter>
</Parameters>
<LocalTags/>
<Routines>
<Routine Name="Logic" Type="ST">
<STContent>
<Line Number="0">
<![CDATA[(***********************************************)]]>
</Line>
<Line Number="1">
<![CDATA[(*   Exlar Tritex 2 Control                    *)]]>
</Line>
<Line Number="2">
<![CDATA[(*                                             *)]]>
</Line>
<Line Number="3">
<![CDATA[(***********************************************)]]>
</Line>
<Line Number="4">
<![CDATA[]]>
</Line>
<Line Number="5">
<![CDATA[(********** Inputs ***********)]]>
</Line>
<Line Number="6">
<![CDATA[]]>
</Line>
<Line Number="7">
<![CDATA[(* Module Register *)]]>
</Line>
<Line Number="8">
<![CDATA[	(* 4316.0 Enable Momentary *)]]>
</Line>
<Line Number="9">
<![CDATA[	if Module.0	then				]]>
</Line>
<Line Number="10">
<![CDATA[		ModuleOutputs[1].0 := 1;	]]>
</Line>
<Line Number="11">
<![CDATA[	else]]>
</Line>
<Line Number="12">
<![CDATA[		ModuleOutputs[1].0 := 0;]]>
</Line>
<Line Number="13">
<![CDATA[	end_if;]]>
</Line>
<Line Number="14">
<![CDATA[]]>
</Line>
<Line Number="15">
<![CDATA[	(* 4316.1 Enable Maintained *)]]>
</Line>
<Line Number="16">
<![CDATA[	if Module.1	then				]]>
</Line>
<Line Number="17">
<![CDATA[		ModuleOutputs[1].1 := 1;	]]>
</Line>
<Line Number="18">
<![CDATA[	else]]>
</Line>
<Line Number="19">
<![CDATA[		ModuleOutputs[1].1 := 0;]]>
</Line>
<Line Number="20">
<![CDATA[	end_if;]]>
</Line>
<Line Number="21">
<![CDATA[]]>
</Line>
<Line Number="22">
<![CDATA[	(* 4316.10 Define Home *)]]>
</Line>
<Line Number="23">
<![CDATA[	if Module.2	then				]]>
</Line>
<Line Number="24">
<![CDATA[		ModuleOutputs[1].10 := 1;	]]>
</Line>
<Line Number="25">
<![CDATA[	else]]>
</Line>
<Line Number="26">
<![CDATA[		ModuleOutputs[1].10 := 0;]]>
</Line>
<Line Number="27">
<![CDATA[	end_if;]]>
</Line>
<Line Number="28">
<![CDATA[]]>
</Line>
<Line Number="29">
<![CDATA[	(* 4316.14 Brake Override *)]]>
</Line>
<Line Number="30">
<![CDATA[	if Module.3	then				]]>
</Line>
<Line Number="31">
<![CDATA[		ModuleOutputs[1].14 := 1;	]]>
</Line>
<Line Number="32">
<![CDATA[	else]]>
</Line>
<Line Number="33">
<![CDATA[		ModuleOutputs[1].14 := 0;]]>
</Line>
<Line Number="34">
<![CDATA[	end_if;]]>
</Line>
<Line Number="35">
<![CDATA[]]>
</Line>
<Line Number="36">
<![CDATA[	(* 4316.15 Fault Reset *)]]>
</Line>
<Line Number="37">
<![CDATA[	if Module.4	then				]]>
</Line>
<Line Number="38">
<![CDATA[		ModuleOutputs[1].15 := 1;	]]>
</Line>
<Line Number="39">
<![CDATA[	else]]>
</Line>
<Line Number="40">
<![CDATA[		ModuleOutputs[1].15 := 0;]]>
</Line>
<Line Number="41">
<![CDATA[	end_if;]]>
</Line>
<Line Number="42">
<![CDATA[					]]>
</Line>
<Line Number="43">
<![CDATA[(* Motion Register *)]]>
</Line>
<Line Number="44">
<![CDATA[	(* 4317.2 Stop Motion *)]]>
</Line>
<Line Number="45">
<![CDATA[	if Motion.0	then				]]>
</Line>
<Line Number="46">
<![CDATA[		ModuleOutputs[3].2 := 1;	]]>
</Line>
<Line Number="47">
<![CDATA[	else]]>
</Line>
<Line Number="48">
<![CDATA[		ModuleOutputs[3].2 := 0;]]>
</Line>
<Line Number="49">
<![CDATA[	end_if;]]>
</Line>
<Line Number="50">
<![CDATA[]]>
</Line>
<Line Number="51">
<![CDATA[	(* 4317.3 Pause Move *)]]>
</Line>
<Line Number="52">
<![CDATA[	if Motion.1	then				]]>
</Line>
<Line Number="53">
<![CDATA[		ModuleOutputs[3].3 := 1;	]]>
</Line>
<Line Number="54">
<![CDATA[	else]]>
</Line>
<Line Number="55">
<![CDATA[		ModuleOutputs[3].3 := 0;]]>
</Line>
<Line Number="56">
<![CDATA[	end_if;]]>
</Line>
<Line Number="57">
<![CDATA[]]>
</Line>
<Line Number="58">
<![CDATA[	(* 4317.8 Initiate Home Move *)]]>
</Line>
<Line Number="59">
<![CDATA[	if Motion.2	then				]]>
</Line>
<Line Number="60">
<![CDATA[		ModuleOutputs[3].8 := 1;	]]>
</Line>
<Line Number="61">
<![CDATA[	else]]>
</Line>
<Line Number="62">
<![CDATA[		ModuleOutputs[3].8 := 0;]]>
</Line>
<Line Number="63">
<![CDATA[	end_if;]]>
</Line>
<Line Number="64">
<![CDATA[	]]>
</Line>
<Line Number="65">
<![CDATA[	(* 4317.10 Dedicated Position EMove *)]]>
</Line>
<Line Number="66">
<![CDATA[	if Motion.3	then				]]>
</Line>
<Line Number="67">
<![CDATA[		ModuleOutputs[3].10 := 1;	]]>
</Line>
<Line Number="68">
<![CDATA[	else]]>
</Line>
<Line Number="69">
<![CDATA[		ModuleOutputs[3].10 := 0;]]>
</Line>
<Line Number="70">
<![CDATA[	end_if;]]>
</Line>
<Line Number="71">
<![CDATA[]]>
</Line>
<Line Number="72">
<![CDATA[(*********** OUTPUTS  ***********)]]>
</Line>
<Line Number="73">
<![CDATA[]]>
</Line>
<Line Number="74">
<![CDATA[(* Drive Faults Active *)]]>
</Line>
<Line Number="75">
<![CDATA[	If ModuleInputs[1].03 then]]>
</Line>
<Line Number="76">
<![CDATA[ 		DF := 1;]]>
</Line>
<Line Number="77">
<![CDATA[	Else]]>
</Line>
<Line Number="78">
<![CDATA[		DF := 0;]]>
</Line>
<Line Number="79">
<![CDATA[	End_If;]]>
</Line>
<Line Number="80">
<![CDATA[]]>
</Line>
</STContent>
</Routine>
</Routines>
</AddOnInstructionDefinition>
</AddOnInstructionDefinitions>
</Controller>
</RSLogix5000Content>
