Guest User

SmartComponent XML example

a guest
Apr 9th, 2020
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <lc:LibraryCompiler xmlns:lc="urn:abb-robotics-robotstudio-librarycompiler"
  3.                                         xmlns="urn:abb-robotics-robotstudio-graphiccomponent"
  4.                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5.                    xsi:schemaLocation="urn:abb-robotics-robotstudio-librarycompiler file:///C:\Program%20Files%20(x86)\ABB\SDK\RobotStudio%202019%20SDK\LibraryCompilerSchema.xsd
  6.                                        urn:abb-robotics-robotstudio-graphiccomponent file:///C:\Program%20Files%20(x86)\ABB\SDK\RobotStudio%202019%20SDK\GraphicComponentSchema.xsd">
  7.   <lc:Library fileName="SC_SRR_GripperControl.rslib">
  8.     <lc:DocumentProperties>
  9.       <lc:Author>Maxim Riabichev</lc:Author>
  10.       <lc:Image source="SC_SRR_GripperControl.png"/>
  11.     </lc:DocumentProperties>
  12.  
  13.     <SmartComponent name="SC_SRR_GripperControl" icon="SC_SRR_GripperControl.png"
  14.                     codeBehind="SC_SRR_GripperControl.CodeBehind,SC_SRR_GripperControl.dll" canBeSimulated="true">
  15.  
  16.       <Properties>
  17.         <DynamicProperty name="Tool" valueType="ABB.Robotics.RobotStudio.Stations.Mechanism">
  18.           <Attribute key="AutoApply" value="true" />
  19.         </DynamicProperty>
  20.  
  21.         <DynamicProperty name="TargetObject" valueType="ABB.Robotics.RobotStudio.Stations.GraphicComponentGroup">
  22.           <Attribute key="AllowedTypes" value="ABB.Robotics.RobotStudio.Stations.GraphicComponent"  />
  23.           <Attribute key="AutoApply" value="true" />
  24.         </DynamicProperty>
  25.  
  26.         <DynamicProperty name="GrippedPart" valueType="ABB.Robotics.RobotStudio.Stations.IAttachableChild" readOnly="true" />
  27.  
  28.         <DynamicProperty name="Verbose" valueType="System.Boolean">
  29.           <Attribute key="AutoApply" value="true" />
  30.         </DynamicProperty>
  31.  
  32.       </Properties>
  33.  
  34.       <Signals>
  35.         <IOSignal name="Active" signalType="DigitalInput" />
  36.         <IOSignal name="doGripped" signalType="DigitalOutput" />
  37.       </Signals>
  38.  
  39.       <Bindings>
  40.       </Bindings>
  41.  
  42.       <GraphicComponents>
  43.       </GraphicComponents>
  44.  
  45.       <Assets>
  46.         <Asset source="SC_SRR_GripperControl.dll"/>
  47.       </Assets>
  48.  
  49.     </SmartComponent>
  50.   </lc:Library>
  51. </lc:LibraryCompiler>
RAW Paste Data