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