SCL_IED.xsd 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:scl="http://www.iec.ch/61850/2003/SCL" xmlns="http://www.iec.ch/61850/2003/SCL" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.iec.ch/61850/2003/SCL" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.7">
  3. <xs:annotation>
  4. <xs:documentation xml:lang="en">
  5. Copyright (c) 2013 IEC. All rights reserved.
  6. Version 1.7. Release 2014/03/11.
  7. </xs:documentation>
  8. </xs:annotation>
  9. <xs:include schemaLocation="SCL_BaseTypes.xsd"/>
  10. <xs:attributeGroup name="agAuthentication">
  11. <xs:attribute name="none" type="xs:boolean" use="optional" default="true"/>
  12. <xs:attribute name="password" type="xs:boolean" use="optional" default="false"/>
  13. <xs:attribute name="weak" type="xs:boolean" use="optional" default="false"/>
  14. <xs:attribute name="strong" type="xs:boolean" use="optional" default="false"/>
  15. <xs:attribute name="certificate" type="xs:boolean" use="optional" default="false"/>
  16. </xs:attributeGroup>
  17. <xs:attributeGroup name="agSmvOpts">
  18. <xs:attribute name="refreshTime" type="xs:boolean" use="optional" default="false"/>
  19. <xs:attribute name="sampleSynchronized" type="xs:boolean" use="optional" default="false"/>
  20. <xs:attribute name="sampleRate" type="xs:boolean" use="optional" default="false"/>
  21. <xs:attribute name="security" type="xs:boolean" use="optional" default="false"/>
  22. <xs:attribute name="dataRef" type="xs:boolean" use="optional" default="false"/>
  23. </xs:attributeGroup>
  24. <xs:attributeGroup name="agOptFields">
  25. <xs:attribute name="seqNum" type="xs:boolean" use="optional" default="false"/>
  26. <xs:attribute name="timeStamp" type="xs:boolean" use="optional" default="false"/>
  27. <xs:attribute name="dataSet" type="xs:boolean" use="optional" default="false"/>
  28. <xs:attribute name="reasonCode" type="xs:boolean" use="optional" default="false"/>
  29. <xs:attribute name="dataRef" type="xs:boolean" use="optional" default="false"/>
  30. <xs:attribute name="entryID" type="xs:boolean" use="optional" default="false"/>
  31. <xs:attribute name="configRef" type="xs:boolean" use="optional" default="false"/>
  32. </xs:attributeGroup>
  33. <xs:attributeGroup name="agLDRef">
  34. <xs:attribute name="iedName" type="tName" use="required"/>
  35. <xs:attribute name="ldInst" type="tName" use="required"/>
  36. </xs:attributeGroup>
  37. <xs:attributeGroup name="agLNRef">
  38. <xs:attributeGroup ref="agLDRef"/>
  39. <xs:attribute name="prefix" type="tAnyName" use="optional" default=""/>
  40. <xs:attribute name="lnClass" type="tLNClassEnum" use="required"/>
  41. <xs:attribute name="lnInst" type="tAnyName" use="required"/>
  42. </xs:attributeGroup>
  43. <xs:attributeGroup name="agDORef">
  44. <xs:attributeGroup ref="agLNRef"/>
  45. <xs:attribute name="doName" type="tName" use="required"/>
  46. </xs:attributeGroup>
  47. <xs:attributeGroup name="agDARef">
  48. <xs:attributeGroup ref="agDORef"/>
  49. <xs:attribute name="daName" type="tName" use="optional"/>
  50. <xs:attribute name="fc" type="tFCEnum" use="optional"/>
  51. </xs:attributeGroup>
  52. <xs:complexType name="tIED">
  53. <xs:complexContent>
  54. <xs:extension base="tNaming">
  55. <xs:sequence>
  56. <xs:element name="Services" type="tServices" minOccurs="0"/>
  57. <xs:element name="AccessPoint" type="tAccessPoint" maxOccurs="unbounded">
  58. <xs:unique name="uniqueLNInAccessPoint">
  59. <xs:selector xpath="./scl:LN"/>
  60. <xs:field xpath="@inst"/>
  61. <xs:field xpath="@lnClass"/>
  62. <xs:field xpath="@prefix"/>
  63. </xs:unique>
  64. </xs:element>
  65. </xs:sequence>
  66. <xs:attribute name="type" type="xs:normalizedString" use="optional"/>
  67. <xs:attribute name="manufacturer" type="xs:normalizedString" use="optional"/>
  68. <xs:attribute name="configVersion" type="xs:normalizedString" use="optional"/>
  69. </xs:extension>
  70. </xs:complexContent>
  71. </xs:complexType>
  72. <xs:complexType name="tServices">
  73. <xs:all>
  74. <xs:element name="DynAssociation" type="tServiceYesNo" minOccurs="0"/>
  75. <xs:element name="SettingGroups" minOccurs="0">
  76. <xs:complexType>
  77. <xs:all>
  78. <xs:element name="SGEdit" type="tServiceYesNo" minOccurs="0"/>
  79. <xs:element name="ConfSG" type="tServiceYesNo" minOccurs="0"/>
  80. </xs:all>
  81. </xs:complexType>
  82. </xs:element>
  83. <xs:element name="GetDirectory" type="tServiceYesNo" minOccurs="0"/>
  84. <xs:element name="GetDataObjectDefinition" type="tServiceYesNo" minOccurs="0"/>
  85. <xs:element name="DataObjectDirectory" type="tServiceYesNo" minOccurs="0"/>
  86. <xs:element name="GetDataSetValue" type="tServiceYesNo" minOccurs="0"/>
  87. <xs:element name="SetDataSetValue" type="tServiceYesNo" minOccurs="0"/>
  88. <xs:element name="DataSetDirectory" type="tServiceYesNo" minOccurs="0"/>
  89. <xs:element name="ConfDataSet" type="tServiceWithMaxAndMaxAttributesAndModify" minOccurs="0"/>
  90. <xs:element name="DynDataSet" type="tServiceWithMaxAndMaxAttributes" minOccurs="0"/>
  91. <xs:element name="ReadWrite" type="tServiceYesNo" minOccurs="0"/>
  92. <xs:element name="TimerActivatedControl" type="tServiceYesNo" minOccurs="0"/>
  93. <xs:element name="ConfReportControl" type="tServiceWithMax" minOccurs="0"/>
  94. <xs:element name="GetCBValues" type="tServiceYesNo" minOccurs="0"/>
  95. <xs:element name="ConfLogControl" type="tServiceWithMax" minOccurs="0"/>
  96. <xs:element name="ReportSettings" type="tReportSettings" minOccurs="0"/>
  97. <xs:element name="LogSettings" type="tLogSettings" minOccurs="0"/>
  98. <xs:element name="GSESettings" type="tGSESettings" minOccurs="0"/>
  99. <xs:element name="SMVSettings" type="tSMVSettings" minOccurs="0"/>
  100. <xs:element name="GSEDir" type="tServiceYesNo" minOccurs="0"/>
  101. <xs:element name="GOOSE" type="tServiceWithMaxAndClient" minOccurs="0"/>
  102. <xs:element name="GSSE" type="tServiceWithMaxAndClient" minOccurs="0"/>
  103. <xs:element name="FileHandling" type="tServiceYesNo" minOccurs="0"/>
  104. <xs:element name="ConfLNs" type="tConfLNs" minOccurs="0"/>
  105. </xs:all>
  106. </xs:complexType>
  107. <xs:complexType name="tAccessPoint">
  108. <xs:complexContent>
  109. <xs:extension base="tNaming">
  110. <xs:choice minOccurs="0">
  111. <xs:element name="Server" type="tServer">
  112. <xs:unique name="uniqueAssociationInServer">
  113. <xs:selector xpath="./scl:Association"/>
  114. <xs:field xpath="@associationID"/>
  115. </xs:unique>
  116. </xs:element>
  117. <xs:element ref="LN" maxOccurs="unbounded"/>
  118. </xs:choice>
  119. <xs:attribute name="router" type="xs:boolean" use="optional" default="false"/>
  120. <xs:attribute name="clock" type="xs:boolean" use="optional" default="false"/>
  121. </xs:extension>
  122. </xs:complexContent>
  123. </xs:complexType>
  124. <xs:complexType name="tServer">
  125. <xs:complexContent>
  126. <xs:extension base="tUnNaming">
  127. <xs:sequence>
  128. <xs:element name="Authentication">
  129. <xs:complexType>
  130. <xs:attributeGroup ref="agAuthentication"/>
  131. </xs:complexType>
  132. </xs:element>
  133. <xs:element name="LDevice" type="tLDevice" maxOccurs="unbounded">
  134. <xs:unique name="uniqueLNInLDevice">
  135. <xs:selector xpath="./scl:LN"/>
  136. <xs:field xpath="@inst"/>
  137. <xs:field xpath="@lnClass"/>
  138. <xs:field xpath="@prefix"/>
  139. </xs:unique>
  140. </xs:element>
  141. <xs:element name="Association" type="tAssociation" minOccurs="0" maxOccurs="unbounded"/>
  142. </xs:sequence>
  143. <xs:attribute name="timeout" type="xs:unsignedInt" use="optional" default="30"/>
  144. </xs:extension>
  145. </xs:complexContent>
  146. </xs:complexType>
  147. <xs:complexType name="tLDevice">
  148. <xs:complexContent>
  149. <xs:extension base="tUnNaming">
  150. <xs:sequence>
  151. <xs:element ref="LN0"/>
  152. <xs:element ref="LN" minOccurs="0" maxOccurs="unbounded"/>
  153. <xs:element name="AccessControl" type="tAccessControl" minOccurs="0"/>
  154. </xs:sequence>
  155. <xs:attribute name="inst" type="tName" use="required"/>
  156. <xs:attribute name="ldName" type="tRestrLdName" use="optional"/>
  157. </xs:extension>
  158. </xs:complexContent>
  159. </xs:complexType>
  160. <xs:complexType name="tAccessControl" mixed="true">
  161. <xs:complexContent>
  162. <xs:extension base="tAnyContentFromOtherNamespace"/>
  163. </xs:complexContent>
  164. </xs:complexType>
  165. <xs:complexType name="tAssociation">
  166. <xs:attribute name="kind" type="tAssociationKindEnum" use="required"/>
  167. <xs:attribute name="associationID" type="tName" use="optional"/>
  168. <xs:attributeGroup ref="agLNRef"/>
  169. </xs:complexType>
  170. <xs:element name="LN0">
  171. <xs:complexType>
  172. <xs:complexContent>
  173. <xs:extension base="tLN0"/>
  174. </xs:complexContent>
  175. </xs:complexType>
  176. <xs:unique name="uniqueReportControlInLN0">
  177. <xs:selector xpath="./scl:ReportControl"/>
  178. <xs:field xpath="@name"/>
  179. </xs:unique>
  180. <xs:unique name="uniqueLogControlInLN0">
  181. <xs:selector xpath="./scl:LogControl"/>
  182. <xs:field xpath="@name"/>
  183. </xs:unique>
  184. <xs:unique name="uniqueGSEControlInLN0">
  185. <xs:selector xpath="./scl:GSEControl"/>
  186. <xs:field xpath="@name"/>
  187. </xs:unique>
  188. <xs:unique name="uniqueSampledValueControlInLN0">
  189. <xs:selector xpath="./scl:SampledValueControl"/>
  190. <xs:field xpath="@name"/>
  191. </xs:unique>
  192. <xs:key name="DataSetKeyLN0">
  193. <xs:selector xpath="./scl:DataSet"/>
  194. <xs:field xpath="@name"/>
  195. </xs:key>
  196. <xs:keyref name="ref2DataSetReportLN0" refer="DataSetKeyLN0">
  197. <xs:selector xpath="./scl:ReportControl"/>
  198. <xs:field xpath="@datSet"/>
  199. </xs:keyref>
  200. <xs:keyref name="ref2DataSetLogLN0" refer="DataSetKeyLN0">
  201. <xs:selector xpath="./scl:LogControl"/>
  202. <xs:field xpath="@datSet"/>
  203. </xs:keyref>
  204. <xs:keyref name="ref2DataSetGSELN0" refer="DataSetKeyLN0">
  205. <xs:selector xpath="./scl:GSEControl"/>
  206. <xs:field xpath="@datSet"/>
  207. </xs:keyref>
  208. <xs:keyref name="ref2DataSetSVLN0" refer="DataSetKeyLN0">
  209. <xs:selector xpath="./scl:SampledValueControl"/>
  210. <xs:field xpath="@datSet"/>
  211. </xs:keyref>
  212. </xs:element>
  213. <xs:element name="LN" type="tLN">
  214. <xs:unique name="uniqueReportControlInLN">
  215. <xs:selector xpath="./scl:ReportControl"/>
  216. <xs:field xpath="@name"/>
  217. </xs:unique>
  218. <xs:unique name="uniqueLogControlInLN">
  219. <xs:selector xpath="./scl:LogControl"/>
  220. <xs:field xpath="@name"/>
  221. </xs:unique>
  222. <xs:key name="DataSetKeyInLN">
  223. <xs:selector xpath="./scl:DataSet"/>
  224. <xs:field xpath="@name"/>
  225. </xs:key>
  226. <xs:keyref name="ref2DataSetReport" refer="DataSetKeyInLN">
  227. <xs:selector xpath="./scl:ReportControl"/>
  228. <xs:field xpath="@datSet"/>
  229. </xs:keyref>
  230. <xs:keyref name="ref2DataSetLog" refer="DataSetKeyInLN">
  231. <xs:selector xpath="./scl:LogControl"/>
  232. <xs:field xpath="@datSet"/>
  233. </xs:keyref>
  234. </xs:element>
  235. <xs:complexType name="tAnyLN" abstract="true">
  236. <xs:complexContent>
  237. <xs:extension base="tUnNaming">
  238. <xs:sequence>
  239. <xs:element name="DataSet" type="tDataSet" minOccurs="0" maxOccurs="unbounded"/>
  240. <xs:element name="ReportControl" type="tReportControl" minOccurs="0" maxOccurs="unbounded"/>
  241. <xs:element name="LogControl" type="tLogControl" minOccurs="0" maxOccurs="unbounded"/>
  242. <xs:element name="DOI" type="tDOI" minOccurs="0" maxOccurs="unbounded"/>
  243. <xs:element name="Inputs" type="tInputs" minOccurs="0"/>
  244. </xs:sequence>
  245. <xs:attribute name="lnType" type="tName" use="required"/>
  246. </xs:extension>
  247. </xs:complexContent>
  248. </xs:complexType>
  249. <xs:complexType name="tLN">
  250. <xs:complexContent>
  251. <xs:extension base="tAnyLN">
  252. <xs:attribute name="lnClass" type="tLNClassEnum" use="required"/>
  253. <xs:attribute name="inst" type="xs:unsignedInt" use="required"/>
  254. <xs:attribute name="prefix" type="tAnyName" use="optional" default=""/>
  255. </xs:extension>
  256. </xs:complexContent>
  257. </xs:complexType>
  258. <xs:complexType name="tLN0">
  259. <xs:complexContent>
  260. <xs:extension base="tAnyLN">
  261. <xs:sequence>
  262. <xs:element name="GSEControl" type="tGSEControl" minOccurs="0" maxOccurs="unbounded"/>
  263. <xs:element name="SampledValueControl" type="tSampledValueControl" minOccurs="0" maxOccurs="unbounded"/>
  264. <xs:element name="SettingControl" type="tSettingControl" minOccurs="0"/>
  265. <xs:element name="SCLControl" type="tSCLControl" minOccurs="0"/>
  266. <xs:element name="Log" type="tLog" minOccurs="0"/>
  267. </xs:sequence>
  268. <xs:attribute name="lnClass" type="tLNClassEnum" use="required" fixed="LLN0"/>
  269. <xs:attribute name="inst" type="xs:normalizedString" use="required"/>
  270. </xs:extension>
  271. </xs:complexContent>
  272. </xs:complexType>
  273. <xs:complexType name="tDataSet">
  274. <xs:complexContent>
  275. <xs:extension base="tNaming">
  276. <xs:sequence>
  277. <xs:element name="FCDA" type="tFCDA" maxOccurs="unbounded"/>
  278. </xs:sequence>
  279. </xs:extension>
  280. </xs:complexContent>
  281. </xs:complexType>
  282. <xs:complexType name="tFCDA">
  283. <xs:attribute name="ldInst" type="tName" use="optional"/>
  284. <xs:attribute name="prefix" type="tAnyName" use="optional" default=""/>
  285. <xs:attribute name="lnClass" type="tLNClassEnum" use="optional"/>
  286. <xs:attribute name="lnInst" type="tName" use="optional"/>
  287. <xs:attribute name="doName" type="tName" use="optional"/>
  288. <xs:attribute name="daName" type="tName" use="optional"/>
  289. <xs:attribute name="fc" type="tFCEnum" use="required"/>
  290. </xs:complexType>
  291. <xs:complexType name="tControl" abstract="true">
  292. <xs:complexContent>
  293. <xs:extension base="tNaming">
  294. <xs:attribute name="datSet" type="tName" use="optional"/>
  295. </xs:extension>
  296. </xs:complexContent>
  297. </xs:complexType>
  298. <xs:complexType name="tControlWithTriggerOpt" abstract="true">
  299. <xs:complexContent>
  300. <xs:extension base="tControl">
  301. <xs:sequence>
  302. <xs:element name="TrgOps" type="tTrgOps" minOccurs="0"/>
  303. </xs:sequence>
  304. <xs:attribute name="intgPd" type="xs:unsignedInt" use="optional" default="0"/>
  305. </xs:extension>
  306. </xs:complexContent>
  307. </xs:complexType>
  308. <xs:complexType name="tTrgOps">
  309. <xs:attribute name="dchg" type="xs:boolean" use="optional" default="false"/>
  310. <xs:attribute name="qchg" type="xs:boolean" use="optional" default="false"/>
  311. <xs:attribute name="dupd" type="xs:boolean" use="optional" default="false"/>
  312. <xs:attribute name="period" type="xs:boolean" use="optional" default="false"/>
  313. </xs:complexType>
  314. <xs:complexType name="tReportControl">
  315. <xs:complexContent>
  316. <xs:extension base="tControlWithTriggerOpt">
  317. <xs:sequence>
  318. <xs:element name="OptFields">
  319. <xs:complexType>
  320. <xs:attributeGroup ref="agOptFields"/>
  321. </xs:complexType>
  322. </xs:element>
  323. <xs:element name="RptEnabled" type="tRptEnabled" minOccurs="0"/>
  324. </xs:sequence>
  325. <xs:attribute name="rptID" type="tName" use="optional">
  326. <xs:annotation>
  327. <xs:documentation xml:lang="en">Even if rptID is optional, it is recommended, for backward compatibility reason, that tools that instantiate ReportControl element, set the attribute rptID to the default system value defined by 8-1: the reference to the Report Control Block.</xs:documentation>
  328. </xs:annotation>
  329. </xs:attribute>
  330. <xs:attribute name="confRev" type="xs:unsignedInt" use="required"/>
  331. <xs:attribute name="buffered" type="xs:boolean" use="optional" default="false"/>
  332. <xs:attribute name="bufTime" type="xs:unsignedInt" use="optional" default="0"/>
  333. </xs:extension>
  334. </xs:complexContent>
  335. </xs:complexType>
  336. <xs:complexType name="tRptEnabled">
  337. <xs:complexContent>
  338. <xs:extension base="tUnNaming">
  339. <xs:sequence>
  340. <xs:element name="ClientLN" type="tClientLN" minOccurs="0" maxOccurs="unbounded"/>
  341. </xs:sequence>
  342. <xs:attribute name="max" type="xs:unsignedInt" use="optional" default="1"/>
  343. </xs:extension>
  344. </xs:complexContent>
  345. </xs:complexType>
  346. <xs:complexType name="tClientLN">
  347. <xs:attributeGroup ref="agLNRef"/>
  348. </xs:complexType>
  349. <xs:complexType name="tLogControl">
  350. <xs:complexContent>
  351. <xs:extension base="tControlWithTriggerOpt">
  352. <xs:attribute name="logName" type="tName" use="required"/>
  353. <xs:attribute name="logEna" type="xs:boolean" use="optional" default="true"/>
  354. <xs:attribute name="reasonCode" type="xs:boolean" use="optional" default="true"/>
  355. </xs:extension>
  356. </xs:complexContent>
  357. </xs:complexType>
  358. <xs:complexType name="tInputs">
  359. <xs:complexContent>
  360. <xs:extension base="tUnNaming">
  361. <xs:sequence>
  362. <xs:element name="ExtRef" type="tExtRef" maxOccurs="unbounded"/>
  363. </xs:sequence>
  364. </xs:extension>
  365. </xs:complexContent>
  366. </xs:complexType>
  367. <xs:complexType name="tExtRef">
  368. <xs:attributeGroup ref="agDORef"/>
  369. <xs:attribute name="daName" type="tName" use="optional"/>
  370. <xs:attribute name="intAddr" type="xs:normalizedString" use="optional"/>
  371. </xs:complexType>
  372. <xs:complexType name="tLog" mixed="true">
  373. <xs:complexContent>
  374. <xs:extension base="tAnyContentFromOtherNamespace"/>
  375. </xs:complexContent>
  376. </xs:complexType>
  377. <xs:complexType name="tControlWithIEDName">
  378. <xs:complexContent>
  379. <xs:extension base="tControl">
  380. <xs:sequence>
  381. <xs:element name="IEDName" type="tName" minOccurs="0" maxOccurs="unbounded"/>
  382. </xs:sequence>
  383. <xs:attribute name="confRev" type="xs:unsignedInt" use="optional"/>
  384. </xs:extension>
  385. </xs:complexContent>
  386. </xs:complexType>
  387. <xs:complexType name="tGSEControl">
  388. <xs:complexContent>
  389. <xs:extension base="tControlWithIEDName">
  390. <xs:attribute name="type" type="tGSEControlTypeEnum" use="optional" default="GOOSE"/>
  391. <xs:attribute name="appID" type="xs:normalizedString" use="required"/>
  392. </xs:extension>
  393. </xs:complexContent>
  394. </xs:complexType>
  395. <xs:complexType name="tSampledValueControl">
  396. <xs:complexContent>
  397. <xs:extension base="tControlWithIEDName">
  398. <xs:sequence>
  399. <xs:element name="SmvOpts">
  400. <xs:complexType>
  401. <xs:attributeGroup ref="agSmvOpts"/>
  402. </xs:complexType>
  403. </xs:element>
  404. </xs:sequence>
  405. <xs:attribute name="smvID" type="xs:normalizedString" use="required"/>
  406. <xs:attribute name="multicast" type="xs:boolean" default="true"/>
  407. <xs:attribute name="smpRate" type="xs:unsignedInt" use="required"/>
  408. <xs:attribute name="nofASDU" type="xs:unsignedInt" use="required"/>
  409. </xs:extension>
  410. </xs:complexContent>
  411. </xs:complexType>
  412. <xs:complexType name="tSettingControl">
  413. <xs:complexContent>
  414. <xs:extension base="tUnNaming">
  415. <xs:attribute name="numOfSGs" type="xs:unsignedInt" use="required"/>
  416. <xs:attribute name="actSG" type="xs:unsignedInt" use="optional" default="1"/>
  417. </xs:extension>
  418. </xs:complexContent>
  419. </xs:complexType>
  420. <xs:complexType name="tSCLControl">
  421. <xs:complexContent>
  422. <xs:extension base="tUnNaming"/>
  423. </xs:complexContent>
  424. </xs:complexType>
  425. <xs:complexType name="tDOI">
  426. <xs:complexContent>
  427. <xs:extension base="tUnNaming">
  428. <xs:choice minOccurs="0" maxOccurs="unbounded">
  429. <xs:element name="SDI" type="tSDI"/>
  430. <xs:element name="DAI" type="tDAI"/>
  431. </xs:choice>
  432. <xs:attribute name="name" type="tRestrName1stU" use="required"/>
  433. <xs:attribute name="ix" type="xs:unsignedInt" use="optional"/>
  434. <xs:attribute name="accessControl" type="xs:normalizedString" use="optional"/>
  435. </xs:extension>
  436. </xs:complexContent>
  437. </xs:complexType>
  438. <xs:complexType name="tSDI">
  439. <xs:complexContent>
  440. <xs:extension base="tUnNaming">
  441. <xs:choice minOccurs="0" maxOccurs="unbounded">
  442. <xs:element name="SDI" type="tSDI"/>
  443. <xs:element name="DAI" type="tDAI"/>
  444. </xs:choice>
  445. <xs:attribute name="name" type="tAttributeNameEnum" use="required"/>
  446. <xs:attribute name="ix" type="xs:unsignedInt" use="optional"/>
  447. </xs:extension>
  448. </xs:complexContent>
  449. </xs:complexType>
  450. <xs:complexType name="tDAI">
  451. <xs:complexContent>
  452. <xs:extension base="tUnNaming">
  453. <xs:sequence>
  454. <xs:element name="Val" type="tVal" minOccurs="0" maxOccurs="unbounded"/>
  455. </xs:sequence>
  456. <xs:attribute name="name" type="tAttributeNameEnum" use="required"/>
  457. <xs:attribute name="sAddr" type="xs:normalizedString" use="optional"/>
  458. <xs:attribute name="valKind" type="tValKindEnum" use="optional" default="Set"/>
  459. <xs:attribute name="ix" type="xs:unsignedInt" use="optional"/>
  460. </xs:extension>
  461. </xs:complexContent>
  462. </xs:complexType>
  463. <xs:complexType name="tServiceYesNo"/>
  464. <xs:complexType name="tServiceWithMax">
  465. <xs:attribute name="max" type="xs:unsignedInt" use="required"/>
  466. </xs:complexType>
  467. <xs:complexType name="tServiceWithMaxAndMaxAttributes">
  468. <xs:complexContent>
  469. <xs:extension base="tServiceWithMax">
  470. <xs:attribute name="maxAttributes" type="xs:unsignedInt" use="optional"/>
  471. </xs:extension>
  472. </xs:complexContent>
  473. </xs:complexType>
  474. <xs:complexType name="tServiceWithMaxAndModify">
  475. <xs:complexContent>
  476. <xs:extension base="tServiceWithMax">
  477. <xs:attribute name="modify" type="xs:boolean" use="optional" default="true"/>
  478. </xs:extension>
  479. </xs:complexContent>
  480. </xs:complexType>
  481. <xs:complexType name="tServiceWithMaxAndMaxAttributesAndModify">
  482. <xs:complexContent>
  483. <xs:extension base="tServiceWithMaxAndMaxAttributes">
  484. <xs:attribute name="modify" type="xs:boolean" use="optional" default="true"/>
  485. </xs:extension>
  486. </xs:complexContent>
  487. </xs:complexType>
  488. <xs:complexType name="tServiceWithMaxAndClient">
  489. <xs:complexContent>
  490. <xs:extension base="tServiceWithMax">
  491. <xs:attribute name="client" type="xs:boolean" use="optional" default="true"/>
  492. </xs:extension>
  493. </xs:complexContent>
  494. </xs:complexType>
  495. <xs:complexType name="tServiceSettings" abstract="true">
  496. <xs:attribute name="cbName" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  497. <xs:attribute name="datSet" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  498. </xs:complexType>
  499. <xs:complexType name="tReportSettings">
  500. <xs:complexContent>
  501. <xs:extension base="tServiceSettings">
  502. <xs:attribute name="rptID" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  503. <xs:attribute name="optFields" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  504. <xs:attribute name="bufTime" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  505. <xs:attribute name="trgOps" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  506. <xs:attribute name="intgPd" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  507. </xs:extension>
  508. </xs:complexContent>
  509. </xs:complexType>
  510. <xs:complexType name="tLogSettings">
  511. <xs:complexContent>
  512. <xs:extension base="tServiceSettings">
  513. <xs:attribute name="logEna" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  514. <xs:attribute name="trgOps" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  515. <xs:attribute name="intgPd" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  516. </xs:extension>
  517. </xs:complexContent>
  518. </xs:complexType>
  519. <xs:complexType name="tGSESettings">
  520. <xs:complexContent>
  521. <xs:extension base="tServiceSettings">
  522. <xs:attribute name="appID" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  523. <xs:attribute name="dataLabel" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  524. </xs:extension>
  525. </xs:complexContent>
  526. </xs:complexType>
  527. <xs:complexType name="tSMVSettings">
  528. <xs:complexContent>
  529. <xs:extension base="tServiceSettings">
  530. <xs:sequence>
  531. <xs:element name="SmpRate" maxOccurs="unbounded">
  532. <xs:simpleType>
  533. <xs:restriction base="xs:decimal">
  534. <xs:minInclusive value="0"/>
  535. </xs:restriction>
  536. </xs:simpleType>
  537. </xs:element>
  538. </xs:sequence>
  539. <xs:attribute name="svID" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  540. <xs:attribute name="optFields" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  541. <xs:attribute name="smpRate" type="tServiceSettingsEnum" use="optional" default="Fix"/>
  542. </xs:extension>
  543. </xs:complexContent>
  544. </xs:complexType>
  545. <xs:complexType name="tConfLNs">
  546. <xs:attribute name="fixPrefix" type="xs:boolean" use="optional" default="false"/>
  547. <xs:attribute name="fixLnInst" type="xs:boolean" use="optional" default="false"/>
  548. </xs:complexType>
  549. <xs:element name="IED" type="tIED">
  550. <xs:unique name="uniqueAccessPointInIED">
  551. <xs:selector xpath="./scl:AccessPoint"/>
  552. <xs:field xpath="@name"/>
  553. </xs:unique>
  554. <xs:key name="LDeviceInIEDKey">
  555. <xs:selector xpath="./scl:AccessPoint/scl:Server/scl:LDevice"/>
  556. <xs:field xpath="@inst"/>
  557. </xs:key>
  558. <xs:keyref name="ref2LDeviceInIED" refer="LDeviceInIEDKey">
  559. <xs:selector xpath="./scl:AccessPoint/scl:Server/scl:LDevice/scl:LN0/scl:LogControl"/>
  560. <xs:field xpath="@logName"/>
  561. </xs:keyref>
  562. </xs:element>
  563. </xs:schema>