mtconnectDataItemId

The "mtconnectDataItemId" property is a required string that specifies the identifier of the data that the MTConnect connector collects. 

When the FairCom MTConnect Connector requests data over the MTConnect protocol, the device returns an <MTConnectStreams> XML document. Data is located in elements containing the dataItemId attribute. The element's name is its data type and its value is the data. The "mtconnectDataItemId" property identifies a data item by specifying the value of the data element's dataItemId attribute.

If the MTConnect protocol returned the following <MTConnectStreams> XML document, you should set the "mtconnectDataItemId" property to "X1_Stamper1_Temperature". The data element is named REAL, which is its data type, and has a data value of "20.1".

<MTConnectStreams>
  <Streams>
    <DeviceStream 
      name="X1" 
      uuid="X1_373f-4ab9-9c7a-173edd23e4f3">
      <ComponentStream 
        component="Device" 
        name="Stamper1" 
        componentId="X1_Stamper1">
        <Samples>
          <REAL 
            dataItemId="X1_Stamper1_Temperature"
            name="Temperature"
            sequence="5" 
            timestamp="2010-04-06T06:19:35.153141"
            >20.1</REAL>
        </Samples>
      </ComponentStream>
    </DeviceStream>
  </Streams>
</MTConnectStreams>

Note An <MTConnectStreams> XML document has no common element name for data elements because the element name for a data item is its data type. In addition, the parent element of data elements may have one of three names: <Samples>, <Events>, and <Condition>. Thus, the best way to identify a data element is the presence of the dataItemId attribute.