Diff of /trunk/Monarco/MonarcoHAT.devdesc.xml [000000] .. [r71]  Maximize  Restore

Switch to unified view

a b/trunk/Monarco/MonarcoHAT.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
   <Strings namespace="local">
126
   <Language lang="en"></Language>
127
  </Strings>
128
  <Files namespace="local">
129
    <Language lang="en">
130
      <File fileref="local" identifier="ImageFile">
131
        <LocalFile>Monarco.png</LocalFile>
132
      </File>
133
      <File fileref="local" identifier="Icon">
134
        <LocalFile>Monarco.ico</LocalFile>
135
      </File>
136
    </Language>
137
  </Files>
138
  <Device hideInCatalogue="false" showParamsInDevDescOrder="true">
139
    <DeviceIdentification>
140
      <Type>501</Type>
141
      <Id>0004 0005</Id>
142
      <Version>2.0.1.2</Version>
143
    </DeviceIdentification>
144
    <DeviceInfo>
145
      <Name name="local:ModelName">Monarco HAT</Name>
146
      <Description name="local:DeviceDescription">Monarco HAT SPI device library for CODESYS</Description>
147
      <Vendor name="local:VendorName">Monarco.io</Vendor>
148
      <OrderNumber>-</OrderNumber>
149
      <Image name="local:ImageFile">Monarco.png</Image>
150
      <Icon name="local:Icon">Monarco.ico</Icon>
151
    </DeviceInfo>
152
    <Connector moduleType="500" interface="Raspberry.SPI" role="child" explicit="false" connectorId="1" hostpath="-1" alwaysmapping="true">
153
      <InterfaceName name="local:PCI">SPI devices</InterfaceName>
154
      <Slot count="1" allowEmpty="false">
155
      </Slot> 
156
      <DriverInfo needsBusCycle="true"> 
157
        <RequiredLib libname="Monarco HAT library for CODESYS" vendor="Open Source" version="2.0.1.2" identifier="DeviceLib">
158
          <FBInstance basename="$(DeviceName)" fbname="IoDrvMonarco">
159
            <Initialize methodName="Initialize" />
160
          </FBInstance>
161
        </RequiredLib>
162
      </DriverInfo>
163
    <HostParameterSet>
164
        <ParameterSection>
165
            <Name name="local:GeneralParameters">Digital In</Name>
166
                <Parameter ParameterId="1000" type="local:TBitStringByte">
167
                    <Attributes channel="input"/>
168
                    <Name name="local:digin">Digital Inputs</Name>
169
                </Parameter>
170
        </ParameterSection>
171
        <ParameterSection>
172
            <Name name="local:GeneralParameters">Analog In </Name>
173
                <Parameter ParameterId="1100" type="std:WORD">
174
                    <Attributes channel="input"/>
175
                    <Name name="AI0">AI0</Name>
176
                </Parameter>
177
                <Parameter ParameterId="1101" type="std:WORD">
178
                    <Attributes channel="input"/>
179
                    <Name name="AI1">AI1</Name>
180
                </Parameter>
181
        </ParameterSection>
182
        <ParameterSection>
183
            <Name name="local:GeneralParameters">Digital Out</Name>
184
                <Parameter ParameterId="2000" type="local:TBitStringByte">
185
                    <Attributes channel="output"/>
186
                    <Name name="local:digout">Digital Outputs</Name>
187
                </Parameter>
188
        </ParameterSection>
189
        <ParameterSection>
190
            <Name name="local:GeneralParameters">Analog Out </Name>
191
                <Parameter ParameterId="2100" type="std:WORD">
192
                    <Attributes channel="output"/>
193
                    <Name name="AO0">AO0</Name>
194
                </Parameter>
195
                <Parameter ParameterId="2101" type="std:WORD">
196
                    <Attributes channel="output"/>
197
                    <Name name="AO1">AO1</Name>
198
                </Parameter>
199
        </ParameterSection>
200
        <ParameterSection>
201
            <Name name="local:GeneralParameters">Control Byte</Name>
202
                <Parameter ParameterId="2200" type="local:TCtrlStringByte">
203
                    <Attributes channel="output"/>
204
                    <Name name="local:UserLeds">Control Byte</Name>
205
                </Parameter>
206
        </ParameterSection>
207
        <ParameterSection>
208
            <Name name="local:GeneralParameters">HW Config</Name>
209
                <Parameter ParameterId="2300" type="local:THWConfigStringByte">
210
                    <Attributes channel="output"/>
211
                    <Name name="local:UserLeds">HW Config Byte</Name>
212
                </Parameter>
213
        </ParameterSection>
214
        <ParameterSection>
215
            <Name name="local:GeneralParameters">User Leds</Name>
216
                <Parameter ParameterId="2400" type="local:TLEDStringByte">
217
                    <Attributes channel="output"/>
218
                    <Name name="local:UserLeds">User Leds Byte</Name>
219
                </Parameter>
220
        </ParameterSection>
221
        </HostParameterSet>
222
    </Connector>
223
    <ExtendedSettings>
224
      <ts:TargetSettings>
225
        <ts:section name="deviceconfiguration">
226
          <ts:setting name="createBitChannels" type="boolean" access="visible">
227
            <ts:value>1</ts:value>
228
          </ts:setting>
229
        </ts:section>
230
      </ts:TargetSettings>
231
    </ExtendedSettings>
232
  </Device>
233
</DeviceDescription>