--- a +++ b/branches/IoDrvMEGAIO/IoDrvFB3.devdesc.xml @@ -0,0 +1,275 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--created with CoDeSys 3.0 (http://www.3s-software.com) by DeviceDescriptionBuilder (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"> + <Types namespace="local"> + <StructType name="Channel8BOOL"> + <Component identifier="BOOL0" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool0">Bit0</VisibleName> + </Component> + <Component identifier="Bool1" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool1">Bit1</VisibleName> + </Component> + <Component identifier="BOOL2" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool2">Bit2</VisibleName> + </Component> + <Component identifier="BOOL3" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool3">Bit3</VisibleName> + </Component> + <Component identifier="BOOL4" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool4">Bit4</VisibleName> + </Component> + <Component identifier="BOOL5" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool5">Bit5</VisibleName> + </Component> + <Component identifier="BOOL6" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool6">Bit6</VisibleName> + </Component> + <Component identifier="BOOL7" type="std:BOOL"> + <Default /> + <VisibleName name="Local:Bool7">Bit7</VisibleName> + </Component> + </StructType> + <StructType name="Ch5BOOL"> + <Component identifier="Bit0" type="std:BOOL"> + <Default /> + <VisibleName name="Bit0">Bit0</VisibleName> + </Component> + <Component identifier="Bit1" type="std:BOOL"> + <Default /> + <VisibleName name="Bit1">Bit1</VisibleName> + </Component> + <Component identifier="Bit2" type="std:BOOL"> + <Default /> + <VisibleName name="Bit2">Bit2</VisibleName> + </Component> + <Component identifier="Bit3" type="std:BOOL"> + <Default /> + <VisibleName name="Bit3">Bit3</VisibleName> + </Component> + <Component identifier="Bit4" type="std:BOOL"> + <Default /> + <VisibleName name="Bit4">Bit4</VisibleName> + </Component> + <Component identifier="Bit5" type="std:BOOL"> + <Default /> + <VisibleName name="Bit5">Bit5</VisibleName> + </Component> + </StructType> + <StructType name="Ch3BOOL"> + <Component identifier="Bit0" type="std:BOOL"> + <Default /> + <VisibleName name="Bit0">Bit0</VisibleName> + </Component> + <Component identifier="Bit1" type="std:BOOL"> + <Default /> + <VisibleName name="Bit1">Bit1</VisibleName> + </Component> + <Component identifier="Bit2" type="std:BOOL"> + <Default /> + <VisibleName name="Bit2">Bit2</VisibleName> + </Component> + <Component identifier="Bit3" type="std:BOOL"> + <Default /> + <VisibleName name="Bit3">Bit3</VisibleName> + </Component> + </StructType> + <StructType name="Ch8REAL"> + <Component identifier="REAL0" type="std:REAL"> + <Default /> + <VisibleName name="REAL0">REAL0</VisibleName> + </Component> + <Component identifier="REAL1" type="std:REAL"> + <Default /> + <VisibleName name="REAL1">REAL1</VisibleName> + </Component> + <Component identifier="REAL2" type="std:REAL"> + <Default /> + <VisibleName name="REAL2">REAL2</VisibleName> + </Component> + <Component identifier="REAL3" type="std:REAL"> + <Default /> + <VisibleName name="REAL3">REAL3</VisibleName> + </Component> + <Component identifier="REAL4" type="std:REAL"> + <Default /> + <VisibleName name="REAL4">REAL4</VisibleName> + </Component> + <Component identifier="REAL5" type="std:REAL"> + <Default /> + <VisibleName name="REAL5">REAL5</VisibleName> + </Component> + <Component identifier="REAL6" type="std:REAL"> + <Default /> + <VisibleName name="REAL6">REAL6</VisibleName> + </Component> + <Component identifier="REAL7" type="std:REAL"> + <Default /> + <VisibleName name="REAL7">REAL7</VisibleName> + </Component> + </StructType> + <StructType name="Ch8UINT"> + <Component identifier="UINT0" type="std:UINT"> + <Default /> + <VisibleName name="UINT0">UINT0</VisibleName> + </Component> + <Component identifier="UINT1" type="std:UINT"> + <Default /> + <VisibleName name="UINT1">UINT1</VisibleName> + </Component> + <Component identifier="UINT2" type="std:UINT"> + <Default /> + <VisibleName name="UINT2">UINT2</VisibleName> + </Component> + <Component identifier="UINT3" type="std:UINT"> + <Default /> + <VisibleName name="UINT3">UINT3</VisibleName> + </Component> + <Component identifier="UINT4" type="std:UINT"> + <Default /> + <VisibleName name="UINT4">UINT4</VisibleName> + </Component> + <Component identifier="UINT5" type="std:UINT"> + <Default /> + <VisibleName name="UINT5">UINT5</VisibleName> + </Component> + <Component identifier="UINT6" type="std:UINT"> + <Default /> + <VisibleName name="UINT6">UINT6</VisibleName> + </Component> + <Component identifier="UINT7" type="std:UINT"> + <Default /> + <VisibleName name="UINT7">UINT7</VisibleName> + </Component> + </StructType> + <StructType name="IoDrvInput"> + <Component identifier="dwIn" type="std:DWORD"> + <Default /> + <VisibleName name="local:Input">Input</VisibleName> + </Component> + <Component identifier="dacVoltage" type="std:REAL"> + <Default /> + <VisibleName name="local:dacVoltageInput">dacVoltage Input</VisibleName> + </Component> + <Component identifier="relayState" type="local:Channel8BOOL"> + <Default /> + <VisibleName name="local:relayState">relayState</VisibleName> + </Component> + <Component identifier="openDrainState" type="local:Ch3BOOL"> + <Default /> + <VisibleName name="openDrain State">openDrain State</VisibleName> + </Component> + <Component identifier="gpioOut" type="local:Ch5BOOL"> + <Default /> + <VisibleName name="gpioOut">gpioOut</VisibleName> + </Component> + <Component identifier="gpioDir" type="local:Ch5BOOL"> + <Default /> + <VisibleName name="gpioDir">gpioDir</VisibleName> + </Component> + </StructType> + <StructType name="IoDrvOutput"> + <Component identifier="dwOut" type="std:DWORD"> + <Default /> + <VisibleName name="local:Output">Output</VisibleName> + </Component> + <Component identifier="adcVoltages" type="local:Ch8REAL"> + <Default /> + <VisibleName name="adcVoltages">adcVoltages</VisibleName> + </Component> + <Component identifier="adcRaw" type="local:Ch8UINT"> + <Default /> + <VisibleName name="adcRaw">adcRaw</VisibleName> + </Component> + <Component identifier="optoIn" type="local:Channel8BOOL"> + <Default /> + <VisibleName name="local:optoIn">optoIn</VisibleName> + </Component> + <Component identifier="gpioIn" type="local:Ch5BOOL"> + <Default /> + <VisibleName name="local:gpioIn">gpioIn</VisibleName> + </Component> + </StructType> + <StructType name="IoDrvConfig"> + <Component identifier="dwConfig" type="std:DWORD"> + <Default>2</Default> + <VisibleName name="local:Config">Config</VisibleName> + </Component> + <!-- + <Component identifier="StackLevel" type="std:USINT"> + <Default>16#1</Default> + <VisibleName name="local:StackLevel">StackLevel</VisibleName> + <Description name="local:StackLevel.Desc">Stack level of MegaIO boards</Description> + </Component> + --> + </StructType> + </Types> + <Strings namespace="local"> + <Language lang="en"> + </Language> + </Strings> + <Files namespace="local"> + <Language lang="en"> + </Language> + </Files> + <Device hideInCatalogue="false"> + <DeviceIdentification> + <Type>8000</Type> + <Id>0004 0007</Id> + <Version>1.0.1.0</Version> + </DeviceIdentification> + <DeviceInfo> + <Name name="local:ModelName">IoDrvFB</Name> + <Description name="local:DeviceDescription">An I/O driver template, meant to easily map an existing FB to the CODESYS I/O driver interface</Description> + <Vendor name="local:VendorName">Open Source</Vendor> + <OrderNumber>-</OrderNumber> + </DeviceInfo> + <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1"> + <InterfaceName name="local:PCI">I²C-Bus</InterfaceName> + <Slot count="1" allowEmpty="false"> + </Slot> + <DriverInfo needsBusCycle="true"> + <RequiredLib libname="IoDrvFB" vendor="Open Source" version="1.0.1.0" identifier="deviceLib"> + <FBInstance basename="$(DeviceName)_Instance" fbname="IoDrvFB"> + <Initialize methodName="Initialize" /> + </FBInstance> + </RequiredLib> + </DriverInfo> + <HostParameterSet> + <Parameter ParameterId="1" type="std:USINT"> + <Attributes channel="none" download="true" functional="false" onlineaccess="read" /> + <Default>16#31</Default> + <Name name="local:I2cAddress">I²C address</Name> + <Description name="local:I2cAddress.Desc">Address of I²C Device</Description> + </Parameter> + <Parameter ParameterId="1000" type="local:IoDrvInput"> + <Attributes channel="input" /> + <Name name="local:Input">Input</Name> + </Parameter> + <Parameter ParameterId="2000" type="local:IoDrvOutput"> + <Attributes channel="Output" /> + <Name name="local:Output">Output</Name> + </Parameter> + <Parameter ParameterId="3000" type="local:IoDrvConfig"> + <Attributes channel="none" /> + <Name name="local:Config">Config</Name> + </Parameter> + </HostParameterSet> + </Connector> + <ExtendedSettings> + <ts:TargetSettings> + <ts:section name="deviceconfiguration"> + <ts:setting name="createBitChannels" type="boolean" access="visible"> + <ts:value>1</ts:value> + </ts:setting> + </ts:section> + </ts:TargetSettings> + </ExtendedSettings> + </Device> +</DeviceDescription> \ No newline at end of file