<Schema name="FDTHARTChannelParameterSchema" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" xmlns:fdt="x-schema:FDTDataTypesSchema.xml" xmlns:appId="x-schema:FDTApplicationIdSchema.xml">
	<!--Definition of Attributes-->
	<AttributeType name="schemaVersion" dt:type="number" default="1.21"/>       
	<AttributeType name="byteLength" dt:type="ui1"/>
	<AttributeType name="commandNumber" dt:type="ui4"/>
	<AttributeType name="frameApplicationTag" dt:type="string"/>
	<AttributeType name="gatewayBusCategory" dt:type="uuid"/>
	<AttributeType name="protectedByChannelAssignment" dt:type="boolean"/>
	<AttributeType name="value" dt:type="string"/>
	<!--Definition of Elements-->
   <ElementType name="CommandParameters" content="empty" model="closed">
	<attribute type="fdt:nodeId" required="no"/>	
	<attribute type="fdt:binData" required="no"/>
	<attribute type="byteLength" required="yes"/>
   </ElementType>
	<ElementType name="Request" content="eltOnly" model="closed" order="many">
		<attribute type="fdt:nodeId" required="no"/>
                <group order="many">
	  <element type="fdt:ChannelReference" minOccurs="0" maxOccurs="*"/>
	  <element type="CommandParameters" minOccurs="0" maxOccurs="*"/>
      </group>
	</ElementType>
	<ElementType name="ResponseCodes" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<element type="fdt:EnumeratorEntry" minOccurs="1" maxOccurs="*"/>
	</ElementType>
	<ElementType name="Reply" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
                <group order="many">
	   <element type="fdt:ChannelReference" minOccurs="0" maxOccurs="*"/>
	   <element type="CommandParameters" minOccurs="0" maxOccurs="*"/>
      </group>
		<element type="ResponseCodes" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="ReadCommand" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="commandNumber" required="yes"/>
		<element type="Request" minOccurs="0" maxOccurs="1"/>
		<element type="Reply" minOccurs="0" maxOccurs="1"/>
		<element type="ResponseCodes" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="WriteCommand" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="commandNumber" required="yes"/>
		<element type="Request" minOccurs="0" maxOccurs="1"/>
		<element type="Reply" minOccurs="0" maxOccurs="1"/>
		<element type="ResponseCodes" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="FDTChannel" content="eltOnly" model="closed" order="seq">
		<attribute type="schemaVersion" required="no"/>                     
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="fdt:tag" required="yes"/>
		<attribute type="fdt:id" required="yes"/>
	    	<attribute type="fdt:descriptor" required="no"/>     
		<attribute type="protectedByChannelAssignment" required="yes"/>
		<attribute type="fdt:dataType" required="yes"/>
		<attribute type="byteLength" required="yes"/>
		<attribute type="fdt:signalType" required="yes"/>
		<attribute type="frameApplicationTag" required="no"/>
     		<attribute type="appId:applicationId" required="no"/>        
		<element type="fdt:SemanticInformation" minOccurs="0" maxOccurs="*"/>
		<element type="fdt:BitEnumeratorEntries" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:EnumeratorEntries" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:Unit" minOccurs="0" maxOccurs="1"/>
		<element type="ReadCommand" minOccurs="0" maxOccurs="1"/>
		<element type="WriteCommand" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:Alarms" minOccurs="0" maxOccurs="1"/>
		<element type="fdt:Ranges" minOccurs="0" maxOccurs="1"/>
      		<element type="fdt:Deadband" minOccurs="0" maxOccurs="1"/>	
		<element type="fdt:SubstituteValue" minOccurs="0" maxOccurs="1"/>
	</ElementType>
	<ElementType name="FDTChannelType" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<element type="fdt:VersionInformation" minOccurs="1" maxOccurs="1"/>
		<attribute type="gatewayBusCategory" required="no"/>
	</ElementType>
	<ElementType name="FDT" content="eltOnly" model="closed">
		<attribute type="fdt:nodeId" required="no"/>
		<attribute type="schemaVersion" required="no"/>                                          
		<element type="FDTChannelType" minOccurs="1" maxOccurs="1"/>
		<element type="FDTChannel" minOccurs="1" maxOccurs="1"/>
	</ElementType>
</Schema>
