1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE DeviceDescription [ <!ENTITY standardparameters SYSTEM "StandardParameters.xml"> ]> <!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Hilmar Panzer (3S - Smart Software Solutions GmbH) --> <DeviceDescription xmlns="http://www.3s-software.com/schemas/DeviceDescription-1.0.xsd" xmlns:ts="http://www.3s-software.com/schemas/TargetSettings-0.1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.3s-software.com/schemas/DeviceDescription-1.0.xsd D:\CoDeSys\Documentation\DOCUME~2.)\PRODUC~1\CODESY~1.0\DEVELO~1\FEATUR~1\DeviceDescription-1.0.xsd"> <Types namespace="localTypes"></Types> <Strings namespace="localStrings"> </Strings> <Files namespace="local"> <Language lang="en"> <File fileref="local" identifier="DriveIcon"> <LocalFile>SoftMotion_Raspi_Stepper.ico</LocalFile> </File> </Language> </Files> <Device> <DeviceIdentification> <Type>1025</Type> <Id>FFFF 0002</Id> <Version>0.0.0.5</Version> </DeviceIdentification> <CompatibleVersions> </CompatibleVersions> <DeviceInfo> <Name name="localStrings:TypeName">SM_Drive_RaspiStepper_PulsDir</Name> <Description name="localStrings:TypeDescription">SoftMotion axis for direct stepper control on Raspberry Pi GPIOs with a puls/direction signal that is processed by a A4988 (or similar) driver</Description> <Vendor name="localStrings:_3S">3S - Smart Software Solutions GmbH</Vendor> <OrderNumber>1805</OrderNumber> <Icon name="local:DriveIcon">SoftMotion_Raspi_Stepper.ico</Icon> </DeviceInfo> <Connector connectorId="1" moduleType="1248" interface="Common.SoftMotion.Logical" role="parent" explicit="false" hostpath="0" initialStatusFlag="241"> <InterfaceName name="local:InterfaceName">SM_Drive_Logical:</InterfaceName> <Var /> </Connector> <Connector role="child" connectorId="0" interface="Common.SoftMotion.General" moduleType="1029" explicit="false"> <InterfaceName name="localStrings:InterfaceName">SM_Drive_RaspiStepper:</InterfaceName> <Slot count="1" allowEmpty="false" /> <Var /> <HostParameterSet> &standardparameters; <ParameterSection> <Name name="local:AXIS_REF">AXIS_REF: Scalings</Name> <Parameter ParameterId="1051" type="std:DWORD"> <Attributes download="true" functional="false" /> <Default>1</Default> <Name name="localStrings:AXIS_REF.dwRatioTechUnitsDenom">dwRatioTechUnitsDenom</Name> <Description name="localStrings:AXIS_REF.dwRatioTechUnitsDenom.Desc">conversion inc./tech.units denominator</Description> <Custom /> </Parameter> <Parameter ParameterId="1052" type="std:DINT"> <Attributes download="true" functional="false" /> <Default>1</Default> <Name name="localStrings:AXIS_REF.iRatioTechUnitsNum">iRatioTechUnitsNum</Name> <Description name="localStrings:AXIS_REF.iRatioTechUnitsNum.Desc">conversion inc./tech.units numerator</Description> <Custom /> </Parameter> <Parameter ParameterId="5000" type="std:DINT"> <Default>200</Default> <Name name="localStrings:ScalingIncs">ScalingIncs</Name> <download>false</download> </Parameter> <Parameter ParameterId="5001" type="std:DINT"> <Default>1</Default> <Name name="localStrings:ScalingMotorTurns1">ScalingMotorTurns1</Name> <download>false</download> </Parameter> <Parameter ParameterId="5002" type="std:DINT"> <Default>1</Default> <Name name="localStrings:ScalingMotorTurns2">ScalingMotorTurns2</Name> <download>false</download> </Parameter> <Parameter ParameterId="5003" type="std:DINT"> <Default>1</Default> <Name name="localStrings:ScalingGearOutput1">ScalingGearOutput1</Name> <download>false</download> </Parameter> <Parameter ParameterId="5004" type="std:DINT"> <Default>1</Default> <Name name="localStrings:ScalingGearOutput2">ScalingGearOutput2</Name> <download>false</download> </Parameter> <Parameter ParameterId="5005" type="std:DINT"> <Default>1</Default> <Name name="localStrings:ScalingUnits">ScalingUnits</Name> <download>false</download> </Parameter> <Parameter ParameterId="5006" type="std:BOOL"> <Default>FALSE</Default> <Name name="localStrings:InvertDirection">InvertDirection</Name> <download>false</download> </Parameter> </ParameterSection> <ParameterSection> <Name name="local:AXIS_REF">AXIS_REF: Motorsettings</Name> <Parameter ParameterId="10306" type="std:LREAL"> <Default>0</Default> <Name name="localStrings:MaxFrequency">MaxFrequency</Name> <Description name="localStrings:MaxFrequence-Desc">maximum frequency (steps per second) that the motor can follow. 0: not supervized</Description> </Parameter> <Parameter ParameterId="10307" type="std:STRING"> <Default>'IEC-Tasks'</Default> <Name name="localStrings:TaskGroup">TaskGroup</Name> <Description name="localStrings:TaskGroup-Desc">name of the task group, in which the step generation will be done (relevant only on multi core systems)</Description> </Parameter> <Parameter ParameterId="10310" type="std:DWORD"> <Default>23</Default> <Name name="localStrings:Puls">Puls</Name> <Description name="localStrings:PulsDesc">GPIO Pin that carries pulse signal</Description> </Parameter> <Parameter ParameterId="10311" type="std:DWORD"> <Default>24</Default> <Name name="localStrings:Dir">Dir</Name> <Description name="localStrings:DirDesc">GPIO Pin that carries direction signal</Description> </Parameter> <Parameter ParameterId="10312" type="std:DWORD"> <Default>18</Default> <Name name="localStrings:Disable">Disable</Name> <Description name="localStrings:PulsDesc">GPIO Pin that is set when the motor is disabled</Description> </Parameter> <Parameter ParameterId="10313" type="std:DWORD"> <Default>0</Default> <Name name="localStrings:Enable">Enable</Name> <Description name="localStrings:PulsDesc">GPIO Pin that is set when the motor is enabled</Description> </Parameter> </ParameterSection> </HostParameterSet> <DriverInfo needsBusCycle="false"> <RequiredLib libname="SM3_Drive_RaspiStepper" vendor="3S - Smart Software Solutions GmbH" version="0.0.0.5" identifier="deviceLib"> <FBInstance basename="$(DeviceName)" fbname="AXIS_REF_RASPISTEPPER" fbnamediag="AXIS_REF_RASPISTEPPER"> <Initialize methodName="Initialize" /> <CyclicCall methodname="BeforeReadInputs" task="#buscycletask" whentocall="beforeReadInputs" /> <CyclicCall methodname="AfterReadInputs" task="#buscycletask" whentocall="afterReadInputs" /> <CyclicCall methodname="BeforeWriteOutputs" task="#buscycletask" whentocall="beforeWriteOutputs" /> <CyclicCall methodname="AfterWriteOutputs" task="#buscycletask" whentocall="afterWriteOutputs" /> </FBInstance> </RequiredLib> </DriverInfo> </Connector> </Device> </DeviceDescription> |