/
Byte Element

Byte Element

<byte>

The <byte> element defines the fields within a datapoint.

The following table lists the attributes for the <byte> element.

AttributeDescriptionRequired /Optional
indexSpecifies the starting byte of the datapoint. Index 0 is the first byte.Required
lengthDefines the number of bytes within the input datapoint.Optional
valueDefines the value of the byte, if any.Optional

Example

<nvs>
  <nv ... >
    <byte index="0" length="1">
      <attribute ... />
    </byte>
  </nv>
</nvs>

XML Schema Definition

  <xs:element name="byte">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="attribute" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
        <xs:attribute name="index" use="required" >
          <xs:simpleType>
            <xs:restriction base="xs:nonNegativeInteger">
              <xs:minInclusive value="0" />
              <xs:maxInclusive value="4095" />
            </xs:restriction>
          </xs:simpleType> 
      </xs:attribute>       
      <xs:attribute name="length" type="xs:NMTOKEN" use="optional" />
      <xs:attribute name="value" type="xs:NMTOKEN" use="optional" />    
    </xs:complexType>
  </xs:element>


Related content

Attribute Element
Attribute Element
More like this
Attributes Element
Attributes Element
More like this
NVs Element
NVs Element
More like this
Enum Element
Enum Element
More like this
Device Class File Schema Definition
Device Class File Schema Definition
More like this