Sample Motors.xml File

From OKOS Wiki
Jump to navigation Jump to search

This example shows the definition for an 8-Axis Galil Motor Controller with no Motor Triggering defined and no Axis Map defined.

 <?xml version="1.0" encoding="utf-8" ?>
 <MultiBoard>
 
 <Board type="DMC1880" value="0">
   <LimitPolarity>NC</LimitPolarity>
   <SlaveAxis>-1</SlaveAxis>
   <CompareAxis>-1</CompareAxis>
   <Axes>
     <Axis value="0">
       <MAxisSetup>
         <AxisName>X-Axis</AxisName>
         <Units>inch</Units>
         <AxisLength>360</AxisLength>
         <MotorResolution>545</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>545</EncoderResolution>
         <Direction>1</Direction>
         <UseSRates>False</UseSRates>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="1">
       <MAxisSetup>
         <AxisName>Y-Axis</AxisName>
         <Units>inch</Units>
         <AxisLength>140</AxisLength>
         <MotorResolution>4000</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>0</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="2">
       <MAxisSetup>
         <AxisName>Z-Axis</AxisName>
         <Units>in</Units>
         <AxisLength>36</AxisLength>
         <MotorResolution>545</MotorResolution>
         <EncoderPresent>True</EncoderPresent>
         <EncoderResolution>545</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>C</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="3">
       <MAxisSetup>
         <AxisName>Turntable</AxisName>
         <Units>deg</Units>
         <AxisLength>360</AxisLength>
         <MotorCountsPerRotation>8000</MotorCountsPerRotation>
         <EncoderPresent>False</EncoderPresent>
         <EncoderCountsPerRotation>8000</EncoderCountsPerRotation>
         <Direction>-1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="4">
       <MAxisSetup>
         <AxisName>Gimbal</AxisName>
         <Units>deg</Units>
         <AxisLength>180</AxisLength>
         <MotorResolution>4000</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>0</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="5">
       <MAxisSetup>
         <AxisName>Swivel</AxisName>
         <Units>deg</Units>
         <AxisLength>180</AxisLength>
         <MotorResolution>4000</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>0</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
         <LimitPresent>true</LimitPresent>
       </MAxisSetup>
     </Axis>
     <Axis value="6">
       <MAxisSetup>
         <AxisName>Axis</AxisName>
         <Units>mm</Units>
         <AxisLength>0</AxisLength>
         <MotorResolution>0</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>0</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
       </MAxisSetup>
     </Axis>
     <Axis value="7">
       <MAxisSetup>
         <AxisName>Axis</AxisName>
         <Units>mm</Units>
         <AxisLength>0</AxisLength>
         <MotorResolution>0</MotorResolution>
         <EncoderPresent>False</EncoderPresent>
         <EncoderResolution>0</EncoderResolution>
         <Direction>1</Direction>
         <PulseType>S</PulseType>
         <EncoderType>Q</EncoderType>
         <MotorType>stepper</MotorType>
       </MAxisSetup>
     </Axis>
   </Axes>
 </Board>
 </MultiBoard>