Diff of /branches/IoDrvMEGAIO/IoDrvFB3.devdesc.xml [000000] .. [r58]  Maximize  Restore

Switch to unified view

a b/branches/IoDrvMEGAIO/IoDrvFB3.devdesc.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<!--created with CoDeSys 3.0 (http://www.3s-software.com) by DeviceDescriptionBuilder (3S-Smart Software Solutions GmbH)-->
3
<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">
4
  <Types namespace="local">
5
    <StructType name="Channel8BOOL">
6
        <Component identifier="BOOL0" type="std:BOOL">
7
          <Default />
8
          <VisibleName name="Local:Bool0">Bit0</VisibleName>
9
        </Component>
10
        <Component identifier="Bool1" type="std:BOOL">
11
          <Default />
12
          <VisibleName name="Local:Bool1">Bit1</VisibleName>
13
        </Component>
14
        <Component identifier="BOOL2" type="std:BOOL">
15
          <Default />
16
          <VisibleName name="Local:Bool2">Bit2</VisibleName>
17
        </Component>
18
        <Component identifier="BOOL3" type="std:BOOL">
19
          <Default />
20
          <VisibleName name="Local:Bool3">Bit3</VisibleName>
21
        </Component>
22
        <Component identifier="BOOL4" type="std:BOOL">
23
          <Default />
24
          <VisibleName name="Local:Bool4">Bit4</VisibleName>
25
        </Component>
26
        <Component identifier="BOOL5" type="std:BOOL">
27
          <Default />
28
          <VisibleName name="Local:Bool5">Bit5</VisibleName>
29
        </Component>
30
        <Component identifier="BOOL6" type="std:BOOL">
31
          <Default />
32
          <VisibleName name="Local:Bool6">Bit6</VisibleName>
33
        </Component>
34
        <Component identifier="BOOL7" type="std:BOOL">
35
          <Default />
36
          <VisibleName name="Local:Bool7">Bit7</VisibleName>
37
        </Component>
38
    </StructType>
39
    <StructType name="Ch5BOOL">
40
        <Component identifier="Bit0" type="std:BOOL">
41
          <Default />
42
          <VisibleName name="Bit0">Bit0</VisibleName>
43
        </Component>
44
        <Component identifier="Bit1" type="std:BOOL">
45
          <Default />
46
          <VisibleName name="Bit1">Bit1</VisibleName>
47
        </Component>
48
        <Component identifier="Bit2" type="std:BOOL">
49
          <Default />
50
          <VisibleName name="Bit2">Bit2</VisibleName>
51
        </Component>
52
        <Component identifier="Bit3" type="std:BOOL">
53
          <Default />
54
          <VisibleName name="Bit3">Bit3</VisibleName>
55
        </Component>
56
        <Component identifier="Bit4" type="std:BOOL">
57
          <Default />
58
          <VisibleName name="Bit4">Bit4</VisibleName>
59
        </Component>
60
        <Component identifier="Bit5" type="std:BOOL">
61
          <Default />
62
          <VisibleName name="Bit5">Bit5</VisibleName>
63
        </Component>
64
    </StructType>
65
    <StructType name="Ch3BOOL">
66
        <Component identifier="Bit0" type="std:BOOL">
67
          <Default />
68
          <VisibleName name="Bit0">Bit0</VisibleName>
69
        </Component>
70
        <Component identifier="Bit1" type="std:BOOL">
71
          <Default />
72
          <VisibleName name="Bit1">Bit1</VisibleName>
73
        </Component>
74
        <Component identifier="Bit2" type="std:BOOL">
75
          <Default />
76
          <VisibleName name="Bit2">Bit2</VisibleName>
77
        </Component>
78
        <Component identifier="Bit3" type="std:BOOL">
79
          <Default />
80
          <VisibleName name="Bit3">Bit3</VisibleName>
81
        </Component>
82
    </StructType>
83
    <StructType name="Ch8REAL">
84
        <Component identifier="REAL0" type="std:REAL">
85
          <Default />
86
          <VisibleName name="REAL0">REAL0</VisibleName>
87
        </Component>
88
        <Component identifier="REAL1" type="std:REAL">
89
          <Default />
90
          <VisibleName name="REAL1">REAL1</VisibleName>
91
        </Component>
92
        <Component identifier="REAL2" type="std:REAL">
93
          <Default />
94
          <VisibleName name="REAL2">REAL2</VisibleName>
95
        </Component>
96
        <Component identifier="REAL3" type="std:REAL">
97
          <Default />
98
          <VisibleName name="REAL3">REAL3</VisibleName>
99
        </Component>
100
        <Component identifier="REAL4" type="std:REAL">
101
          <Default />
102
          <VisibleName name="REAL4">REAL4</VisibleName>
103
        </Component>
104
        <Component identifier="REAL5" type="std:REAL">
105
          <Default />
106
          <VisibleName name="REAL5">REAL5</VisibleName>
107
        </Component>
108
        <Component identifier="REAL6" type="std:REAL">
109
          <Default />
110
          <VisibleName name="REAL6">REAL6</VisibleName>
111
        </Component>
112
        <Component identifier="REAL7" type="std:REAL">
113
          <Default />
114
          <VisibleName name="REAL7">REAL7</VisibleName>
115
        </Component>
116
    </StructType>
117
    <StructType name="Ch8UINT">
118
        <Component identifier="UINT0" type="std:UINT">
119
          <Default />
120
          <VisibleName name="UINT0">UINT0</VisibleName>
121
        </Component>
122
        <Component identifier="UINT1" type="std:UINT">
123
          <Default />
124
          <VisibleName name="UINT1">UINT1</VisibleName>
125
        </Component>
126
        <Component identifier="UINT2" type="std:UINT">
127
          <Default />
128
          <VisibleName name="UINT2">UINT2</VisibleName>
129
        </Component>
130
        <Component identifier="UINT3" type="std:UINT">
131
          <Default />
132
          <VisibleName name="UINT3">UINT3</VisibleName>
133
        </Component>
134
        <Component identifier="UINT4" type="std:UINT">
135
          <Default />
136
          <VisibleName name="UINT4">UINT4</VisibleName>
137
        </Component>
138
        <Component identifier="UINT5" type="std:UINT">
139
          <Default />
140
          <VisibleName name="UINT5">UINT5</VisibleName>
141
        </Component>
142
        <Component identifier="UINT6" type="std:UINT">
143
          <Default />
144
          <VisibleName name="UINT6">UINT6</VisibleName>
145
        </Component>
146
        <Component identifier="UINT7" type="std:UINT">
147
          <Default />
148
          <VisibleName name="UINT7">UINT7</VisibleName>
149
        </Component>
150
    </StructType>
151
    <StructType name="IoDrvInput">
152
      <Component identifier="dwIn" type="std:DWORD">
153
        <Default />
154
        <VisibleName name="local:Input">Input</VisibleName>
155
      </Component>
156
      <Component identifier="dacVoltage" type="std:REAL">
157
        <Default />
158
        <VisibleName name="local:dacVoltageInput">dacVoltage Input</VisibleName>
159
      </Component>
160
      <Component identifier="relayState" type="local:Channel8BOOL">
161
        <Default />
162
        <VisibleName name="local:relayState">relayState</VisibleName>
163
      </Component>
164
      <Component identifier="openDrainState" type="local:Ch3BOOL">
165
        <Default />
166
        <VisibleName name="openDrain State">openDrain State</VisibleName>
167
      </Component>
168
      <Component identifier="gpioOut" type="local:Ch5BOOL">
169
        <Default />
170
        <VisibleName name="gpioOut">gpioOut</VisibleName>
171
      </Component>
172
      <Component identifier="gpioDir" type="local:Ch5BOOL">
173
        <Default />
174
        <VisibleName name="gpioDir">gpioDir</VisibleName>
175
      </Component>
176
    </StructType>
177
    <StructType name="IoDrvOutput">
178
      <Component identifier="dwOut" type="std:DWORD">
179
        <Default />
180
        <VisibleName name="local:Output">Output</VisibleName>
181
      </Component>
182
      <Component identifier="adcVoltages" type="local:Ch8REAL">
183
        <Default />
184
        <VisibleName name="adcVoltages">adcVoltages</VisibleName>
185
      </Component>
186
      <Component identifier="adcRaw" type="local:Ch8UINT">
187
        <Default />
188
        <VisibleName name="adcRaw">adcRaw</VisibleName>
189
      </Component>
190
      <Component identifier="optoIn" type="local:Channel8BOOL">
191
        <Default />
192
        <VisibleName name="local:optoIn">optoIn</VisibleName>
193
      </Component>
194
      <Component identifier="gpioIn" type="local:Ch5BOOL">
195
        <Default />
196
        <VisibleName name="local:gpioIn">gpioIn</VisibleName>
197
      </Component>
198
    </StructType>
199
    <StructType name="IoDrvConfig">
200
      <Component identifier="dwConfig" type="std:DWORD">
201
        <Default>2</Default>
202
        <VisibleName name="local:Config">Config</VisibleName>
203
      </Component>
204
      <!--
205
      <Component identifier="StackLevel" type="std:USINT">
206
        <Default>16#1</Default>
207
        <VisibleName name="local:StackLevel">StackLevel</VisibleName>
208
        <Description name="local:StackLevel.Desc">Stack level of MegaIO boards</Description>
209
      </Component>
210
      -->
211
    </StructType>
212
  </Types>
213
  <Strings namespace="local">
214
    <Language lang="en">
215
    </Language>
216
  </Strings>
217
  <Files namespace="local">
218
    <Language lang="en">
219
    </Language>
220
  </Files>
221
  <Device hideInCatalogue="false">
222
    <DeviceIdentification>
223
      <Type>8000</Type>
224
      <Id>0004 0007</Id>
225
      <Version>1.0.1.0</Version>
226
    </DeviceIdentification>
227
    <DeviceInfo>
228
      <Name name="local:ModelName">IoDrvFB</Name>
229
      <Description name="local:DeviceDescription">An I/O driver template, meant to easily map an existing FB to the CODESYS I/O driver interface</Description>
230
      <Vendor name="local:VendorName">Open Source</Vendor>
231
      <OrderNumber>-</OrderNumber>
232
    </DeviceInfo>
233
    <Connector moduleType="500" interface="Raspberry.I2C" role="child" explicit="false" connectorId="1" hostpath="-1">
234
      <InterfaceName name="local:PCI">I²C-Bus</InterfaceName>
235
      <Slot count="1" allowEmpty="false">
236
      </Slot>
237
      <DriverInfo needsBusCycle="true">
238
        <RequiredLib libname="IoDrvFB" vendor="Open Source" version="1.0.1.0" identifier="deviceLib">
239
          <FBInstance basename="$(DeviceName)_Instance" fbname="IoDrvFB">
240
            <Initialize methodName="Initialize" />
241
          </FBInstance>
242
        </RequiredLib>
243
      </DriverInfo>
244
      <HostParameterSet>
245
        <Parameter ParameterId="1" type="std:USINT">
246
          <Attributes channel="none" download="true" functional="false" onlineaccess="read" />
247
          <Default>16#31</Default>
248
          <Name name="local:I2cAddress">I²C address</Name>
249
          <Description name="local:I2cAddress.Desc">Address of I²C Device</Description>
250
        </Parameter>
251
        <Parameter ParameterId="1000" type="local:IoDrvInput">
252
            <Attributes channel="input" />
253
            <Name name="local:Input">Input</Name>
254
        </Parameter>
255
        <Parameter ParameterId="2000" type="local:IoDrvOutput">
256
            <Attributes channel="Output" />
257
            <Name name="local:Output">Output</Name>
258
        </Parameter>
259
        <Parameter ParameterId="3000" type="local:IoDrvConfig">
260
            <Attributes channel="none" />
261
            <Name name="local:Config">Config</Name>
262
        </Parameter>
263
      </HostParameterSet>
264
    </Connector>
265
    <ExtendedSettings>
266
      <ts:TargetSettings>
267
        <ts:section name="deviceconfiguration">
268
          <ts:setting name="createBitChannels" type="boolean" access="visible">
269
            <ts:value>1</ts:value>
270
          </ts:setting>
271
        </ts:section>
272
      </ts:TargetSettings>
273
    </ExtendedSettings>
274
  </Device>
275
</DeviceDescription>