a | b/branches/IoDrvMonarco/IoDrvMonarco v2.0.1.3.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 | |||
6 | |||
7 | <BitfieldType basetype="std:BYTE" name="TBitStringByte"> |
||
8 | <Component identifier="Bit0" type="std:BOOL"> |
||
9 | <Default /> |
||
10 | <VisibleName name="local:TBitStringByte.Bit0">Bit0</VisibleName> |
||
11 | </Component> |
||
12 | <Component identifier="Bit1" type="std:BOOL"> |
||
13 | <Default /> |
||
14 | <VisibleName name="local:TBitStringByte.Bit1">Bit1</VisibleName> |
||
15 | </Component> |
||
16 | <Component identifier="Bit2" type="std:BOOL"> |
||
17 | <Default /> |
||
18 | <VisibleName name="local:TBitStringByte.Bit2">Bit2</VisibleName> |
||
19 | </Component> |
||
20 | <Component identifier="Bit3" type="std:BOOL"> |
||
21 | <Default /> |
||
22 | <VisibleName name="local:TBitStringByte.Bit3">Bit3</VisibleName> |
||
23 | </Component> |
||
24 | </BitfieldType> |
||
25 | <BitfieldType basetype="std:BYTE" name="TLEDStringByte"> |
||
26 | <Component identifier="Led0" type="std:BOOL"> |
||
27 | <Default /> |
||
28 | <VisibleName name="local:TLEDStringByte.Bit0">Led0</VisibleName> |
||
29 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
30 | </Component> |
||
31 | <Component identifier="Led1" type="std:BOOL"> |
||
32 | <Default /> |
||
33 | <VisibleName name="local:TLEDStringByte.Bit1">Led1</VisibleName> |
||
34 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
35 | </Component> |
||
36 | <Component identifier="Led2" type="std:BOOL"> |
||
37 | <Default /> |
||
38 | <VisibleName name="local:TLEDStringByte.Bit2">Led2</VisibleName> |
||
39 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
40 | </Component> |
||
41 | <Component identifier="Led3" type="std:BOOL"> |
||
42 | <Default /> |
||
43 | <VisibleName name="local:TLEDStringByte.Bit3">Led3</VisibleName> |
||
44 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
45 | </Component> |
||
46 | <Component identifier="Led4" type="std:BOOL"> |
||
47 | <Default /> |
||
48 | <VisibleName name="local:TLEDStringByte.Bit0">Led4</VisibleName> |
||
49 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
50 | </Component> |
||
51 | <Component identifier="Led5" type="std:BOOL"> |
||
52 | <Default /> |
||
53 | <VisibleName name="local:TLEDStringByte.Bit1">Led5</VisibleName> |
||
54 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
55 | </Component> |
||
56 | <Component identifier="Led6" type="std:BOOL"> |
||
57 | <Default /> |
||
58 | <VisibleName name="local:TLEDStringByte.Bit2">Led6</VisibleName> |
||
59 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
60 | </Component> |
||
61 | <Component identifier="Led7" type="std:BOOL"> |
||
62 | <Default /> |
||
63 | <VisibleName name="local:TLEDStringByte.Bit3">Led7</VisibleName> |
||
64 | <Description>FALSE => IO Channel Value, TRUE => User Value</Description> |
||
65 | </Component> |
||
66 | </BitfieldType> |
||
67 | <BitfieldType basetype="std:BYTE" name="TCtrlStringByte"> |
||
68 | <Component identifier="Status LED CTRL" type="std:BOOL"> |
||
69 | <Default>FALSE</Default> |
||
70 | <VisibleName>Status LED CTRL</VisibleName> |
||
71 | <Description>Status LED indication => TRUE: User controlled, FALSE: System Status Indication</Description> |
||
72 | </Component> |
||
73 | <Component identifier="StatusLEDValue" type="std:BOOL"> |
||
74 | <Default>FALSE</Default> |
||
75 | <VisibleName>Status LED Value</VisibleName> |
||
76 | <Description>Only applicable if Status LED CTRL is enabled => TRUE: LED on, FALSE: LED off</Description> |
||
77 | </Component> |
||
78 | <Component identifier="OneWireShutdown" type="std:BOOL"> |
||
79 | <Default>FALSE</Default> |
||
80 | <VisibleName>1-Wire power shutdown</VisibleName> |
||
81 | <Description>Useful for bus reset in case of freeze => TRUE: 1-Wire bus power down, FALSE: normal operation</Description> |
||
82 | </Component> |
||
83 | <Component identifier="RESERVED" type="std:BOOL"> |
||
84 | <Default>FALSE</Default> |
||
85 | <VisibleName>[RESERVED]</VisibleName> |
||
86 | <Description>RESERVED: Always FALSE</Description> |
||
87 | </Component> |
||
88 | <Component identifier="Counter1Reset" type="std:BOOL"> |
||
89 | <Default>FALSE</Default> |
||
90 | <VisibleName>Counter 1 Reset</VisibleName> |
||
91 | <Description>TRUE: COUNTER1 Value reset request, FALSE: normal operation</Description> |
||
92 | </Component> |
||
93 | <Component identifier="Counter2Reset" type="std:BOOL"> |
||
94 | <Default>FALSE</Default> |
||
95 | <VisibleName>Counter 2 Reset</VisibleName> |
||
96 | <Description>TRUE: COUNTER2 Value reset request, FALSE: normal operation</Description> |
||
97 | </Component> |
||
98 | <Component identifier="SignOfLife0" type="std:BOOL"> |
||
99 | <Default>FALSE</Default> |
||
100 | <VisibleName>[FUTURE]</VisibleName> |
||
101 | <Description>FUTURE: Sign of Life 0/1 - should be incremented with each data transfer as 2bit number low/high bit, used by firmware as health check of SPI Master</Description> |
||
102 | </Component> |
||
103 | <Component identifier="SignOfLife1" type="std:BOOL"> |
||
104 | <Default>FALSE</Default> |
||
105 | <VisibleName>[FUTURE]</VisibleName> |
||
106 | <Description>FUTURE: Sign of Life 0/1 - should be incremented with each data transfer as 2bit number low/high bit, used by firmware as health check of SPI Master</Description> |
||
107 | </Component> |
||
108 | </BitfieldType> |
||
109 | <BitfieldType basetype="std:BYTE" name="THWConfigStringByte"> |
||
110 | <Component identifier="AIN1Shunt" type="std:BOOL"> |
||
111 | <Default>FALSE</Default> |
||
112 | <VisibleName>AIN1 Shunt</VisibleName> |
||
113 | <Description>AIN1 current loop shunt resistor enable (TRUE / FALSE)</Description> |
||
114 | </Component> |
||
115 | <Component identifier="AIN2Shunt" type="std:BOOL"> |
||
116 | <Default>FALSE</Default> |
||
117 | <VisibleName>AIN2 Shunt</VisibleName> |
||
118 | <Description>AIN2 current loop shunt resistor enable (TRUE / FALSE)</Description> |
||
119 | </Component> |
||
120 | <Component identifier="RS-485 Termination resistor" type="std:BOOL"> |
||
121 | <Default>FALSE</Default> |
||
122 | <VisibleName>RS-485 Termination resistor</VisibleName> |
||
123 | <Description>RS-485 termination resistor enable (TRUE / FALSE)</Description> |
||
124 | </Component> |
||
125 | </BitfieldType> |
||
126 | </Types> |
||
127 | |||
128 | |||
129 | <!-- |
||
130 | <HostParameterSet> |
||
131 | <ParameterSection> |
||
132 | <Name name="local:GeneralParameters">Digital In</Name> |
||
133 | <Parameter ParameterId="1000" type="local:TBitStringByte"> |
||
134 | <Attributes channel="input"/> |
||
135 | <Name name="local:digin">Digital Inputs</Name> |
||
136 | </Parameter> |
||
137 | </ParameterSection> |
||
138 | <ParameterSection> |
||
139 | <Name name="local:GeneralParameters">Analog In </Name> |
||
140 | <Parameter ParameterId="1100" type="std:WORD"> |
||
141 | <Attributes channel="input"/> |
||
142 | <Name name="AI0">AI0</Name> |
||
143 | </Parameter> |
||
144 | <Parameter ParameterId="1101" type="std:WORD"> |
||
145 | <Attributes channel="input"/> |
||
146 | <Name name="AI1">AI1</Name> |
||
147 | </Parameter> |
||
148 | </ParameterSection> |
||
149 | <ParameterSection> |
||
150 | <Name name="local:GeneralParameters">Digital Out</Name> |
||
151 | <Parameter ParameterId="2000" type="local:TBitStringByte"> |
||
152 | <Attributes channel="output"/> |
||
153 | <Name name="local:digout">Digital Outputs</Name> |
||
154 | </Parameter> |
||
155 | </ParameterSection> |
||
156 | <ParameterSection> |
||
157 | <Name name="local:GeneralParameters">Analog Out </Name> |
||
158 | <Parameter ParameterId="2100" type="std:WORD"> |
||
159 | <Attributes channel="output"/> |
||
160 | <Name name="AO0">AO0</Name> |
||
161 | </Parameter> |
||
162 | <Parameter ParameterId="2101" type="std:WORD"> |
||
163 | <Attributes channel="output"/> |
||
164 | <Name name="AO1">AO1</Name> |
||
165 | </Parameter> |
||
166 | </ParameterSection> |
||
167 | <ParameterSection> |
||
168 | <Name name="local:GeneralParameters">Control Byte</Name> |
||
169 | <Parameter ParameterId="2200" type="local:TCtrlStringByte"> |
||
170 | <Attributes channel="output"/> |
||
171 | <Name name="local:UserLeds">Control Byte</Name> |
||
172 | </Parameter> |
||
173 | </ParameterSection> |
||
174 | <ParameterSection> |
||
175 | <Name name="local:GeneralParameters">HW Config</Name> |
||
176 | <Parameter ParameterId="2300" type="local:THWConfigStringByte"> |
||
177 | <Attributes channel="output"/> |
||
178 | <Name name="local:UserLeds">HW Config Byte</Name> |
||
179 | </Parameter> |
||
180 | </ParameterSection> |
||
181 | <ParameterSection> |
||
182 | <Name name="local:GeneralParameters">User Leds</Name> |
||
183 | <Parameter ParameterId="2400" type="local:TLEDStringByte"> |
||
184 | <Attributes channel="output"/> |
||
185 | <Name name="local:UserLeds">User Leds Byte</Name> |
||
186 | </Parameter> |
||
187 | </ParameterSection> |
||
188 | </HostParameterSet> |
||
189 | --> |
||
190 | |||
191 | |||
192 | <StructType name="IoDrvInput"> |
||
193 | <Component identifier="adcVoltages" type="local:Ch8REAL"> |
||
194 | <Default /> |
||
195 | <VisibleName name="adcVoltages">adcVoltages</VisibleName> |
||
196 | </Component> |
||
197 | <Component identifier="adcRaw" type="local:Ch8UINT"> |
||
198 | <Default /> |
||
199 | <VisibleName name="adcRaw">adcRaw</VisibleName> |
||
200 | </Component> |
||
201 | <Component identifier="optoIn" type="local:Channel8BOOL"> |
||
202 | <Default /> |
||
203 | <VisibleName name="local:optoIn">optoIn</VisibleName> |
||
204 | </Component> |
||
205 | <Component identifier="gpioIn" type="local:Ch5BOOL"> |
||
206 | <Default /> |
||
207 | <VisibleName name="local:gpioIn">gpioIn</VisibleName> |
||
208 | </Component> |
||
209 | </StructType> |
||
210 | <StructType name="IoDrvOutput"> |
||
211 | <Component identifier="dacVoltage" type="std:REAL"> |
||
212 | <Default /> |
||
213 | <VisibleName name="local:dacVoltageInput">dacVoltage Input</VisibleName> |
||
214 | </Component> |
||
215 | <Component identifier="relayState" type="local:Channel8BOOL"> |
||
216 | <Default /> |
||
217 | <VisibleName name="local:relayState">relayState</VisibleName> |
||
218 | </Component> |
||
219 | <Component identifier="openDrainState" type="local:OpenDrainState"> |
||
220 | <Default /> |
||
221 | <VisibleName name="openDrain State">OpenDrain State</VisibleName> |
||
222 | </Component> |
||
223 | <Component identifier="gpioOut" type="local:Ch5BOOL"> |
||
224 | <Default /> |
||
225 | <VisibleName name="gpioOut">gpioOut</VisibleName> |
||
226 | </Component> |
||
227 | <Component identifier="gpioDir" type="local:Ch5BOOL"> |
||
228 | <Default /> |
||
229 | <VisibleName name="gpioDir">GPIO Direction</VisibleName> |
||
230 | </Component> |
||
231 | </StructType> |
||
232 | <StructType name="IoDrvConfig"> |
||
233 | <!-- |
||
234 | <Component identifier="StackLevel" type="std:USINT"> |
||
235 | <Default>16#1</Default> |
||
236 | <VisibleName name="local:StackLevel">StackLevel</VisibleName> |
||
237 | <Description name="local:StackLevel.Desc">Stack level of MegaIO boards</Description> |
||
238 | </Component> |
||
239 | --> |
||
240 | <Component identifier="ControlByte="local:TCtrlStringByte"> |
||
241 | <VisibleName name="local:ControlByte">Control Byte</VisibleName> |
||
242 | <Description name="local:ControlByte.Desc">Control Byte </Description> |
||
243 | </Component> |
||
244 | <Component identifier="HWConfig="local:THWConfigStringByte"> |
||
245 | <VisibleName name="local:HWConfig">HW Config </VisibleName> |
||
246 | <Description name="local:HWConfig.Desc">HW Config Byte</Description> |
||
247 | </Component> |
||
248 | <ParameterSection> |
||
249 | <Name name="local:GeneralParameters">HW Config</Name> |
||
250 | <Parameter ParameterId="2300" type="local:THWConfigStringByte"> |
||
251 | <Attributes channel="output"/> |
||
252 | <Name name="local:UserLeds">HW Config Byte</Name> |
||
253 | </Parameter> |
||
254 | </ParameterSection> |
||
255 | </StructType> |
||
256 | |||
257 | |||
258 | <Strings namespace="local"> |
||
259 | <Language lang="en"></Language> |
||
260 | </Strings> |
||
261 | <Files namespace="local"> |
||
262 | <Language lang="en"> |
||
263 | <File fileref="local" identifier="ImageFile"> |
||
264 | <LocalFile>device.png</LocalFile> |
||
265 | </File> |
||
266 | <File fileref="local" identifier="Icon"> |
||
267 | <LocalFile>device.ico</LocalFile> |
||
268 | </File> |
||
269 | </Language> |
||
270 | </Files> |
||
271 | <Device hideInCatalogue="false" showParamsInDevDescOrder="true"> |
||
272 | <DeviceIdentification> |
||
273 | <Type>501</Type> |
||
274 | <Id>0004 0005</Id> |
||
275 | <Version>2.0.1.3</Version> |
||
276 | </DeviceIdentification> |
||
277 | <DeviceInfo> |
||
278 | <Name name="local:ModelName">Monarco HAT</Name> |
||
279 | <Description name="local:DeviceDescription">An I/O driver for Monarco HAT written by Aliazzz</Description> |
||
280 | <Vendor name="local:VendorName">Open Source</Vendor> |
||
281 | <OrderNumber>-</OrderNumber> |
||
282 | <Image name="local:ImageFile">device.png</Image> |
||
283 | <Icon name="local:Icon">device.ico</Icon> |
||
284 | </DeviceInfo> |
||
285 | <Connector moduleType="500" interface="Raspberry.SPI" role="child" explicit="false" connectorId="1" hostpath="-1" alwaysmapping="true"> |
||
286 | <InterfaceName name="local:PCI">SPI devices</InterfaceName> |
||
287 | <Slot count="1" allowEmpty="false"> |
||
288 | </Slot> |
||
289 | <DriverInfo needsBusCycle="true"> |
||
290 | <RequiredLib libname="Monarco HAT library for CODESYS" vendor="Open Source" version="2.0.1.3" identifier="DeviceLib"> |
||
291 | <FBInstance basename="$(DeviceName)" fbname="IoDrvMonarco"> |
||
292 | <Initialize methodName="Initialize" /> |
||
293 | </FBInstance> |
||
294 | </RequiredLib> |
||
295 | </DriverInfo> |
||
296 | |||
297 | <HostParameterSet> |
||
298 | <ParameterSection> |
||
299 | <Name name="local:GeneralParameters">Input Channels</Name> |
||
300 | <Parameter ParameterId="1000" type="local:IoDrvInput"> |
||
301 | <Attributes channel="Input" /> |
||
302 | <Name name="local:Input">Input Channels</Name> |
||
303 | </Parameter> |
||
304 | </ParameterSection> |
||
305 | <ParameterSection> |
||
306 | <Name name="local:GeneralParameters">Output Channels</Name> |
||
307 | <Parameter ParameterId="2000" type="local:IoDrvOutput"> |
||
308 | <Attributes channel="Output" /> |
||
309 | <Name name="local:Output">Output Channels</Name> |
||
310 | </Parameter> |
||
311 | </ParameterSection> |
||
312 | <ParameterSection> |
||
313 | <Name name="local:GeneralParameters">Configuration</Name> |
||
314 | <Parameter ParameterId="3000" type="local:IoDrvConfig"> |
||
315 | <Attributes channel="none" /> |
||
316 | <Name name="local:Config">Configuration</Name> |
||
317 | </Parameter> |
||
318 | </ParameterSection> |
||
319 | </HostParameterSet> |
||
320 | |||
321 | </Connector> |
||
322 | <ExtendedSettings> |
||
323 | <ts:TargetSettings> |
||
324 | <ts:section name="deviceconfiguration"> |
||
325 | <ts:setting name="createBitChannels" type="boolean" access="visible"> |
||
326 | <ts:value>1</ts:value> |
||
327 | </ts:setting> |
||
328 | </ts:section> |
||
329 | </ts:TargetSettings> |
||
330 | </ExtendedSettings> |
||
331 | </Device> |
||
332 | </DeviceDescription> |