MTConnect 2.8 package

Representations

This section provides semantic information for the Representation model.

Representation

Note: See Representation Schema Diagrams for XML schema.

Classes

DataSet

Representation for an Observation composed of value(s) represented as a set of key-value pairs.

Description

DataSet for an Observation is defined by the associated representation as DATA_SET.

representation as DATA_SET MUST have category as SAMPLE or EVENT.

VariableDataSet shows the model for Variable (Event type) with a Representation type of DataSet.

VariableDataSet

Note: See DataSet Schema for XML schema.

DataSet reports multiple values as a set of key-value pair where each key MUST be unique. The representation of the key-value pair is an Entry. The value of each Entry MUST have the same constraints and format as the Observation defined for representation as VALUE for the DataItem type. (See Value).

The meaning of each Entry MAY be provided as the DataItem EntryDefinition.

DataSet Example shows Event Observation type Variable with a Representation type of DataSet.

DataSet Example

Note: See dataset-example for the XML representation of the same example.

Management of Data Set Observations

An agent MUST maintain the current state of the DataSet as described in Fundamentals.

One or more key-value pairs MAY be added, removed, or changed in an Observation. An agent MUST publish the changes to one or more key-value pairs as a single Observation. An agent MUST indicate the removal of a key-value pair from a DataSet using the removed as true.

When the discrete is false or is not present, an agent in response to a sample request MUST only publish the changed key-value pair since the previous state of the DataSet.

When the discrete attribute is true, an agent, in response to a sample request, MUST report all key-value pairs ignoring the state of the DataSet.

When an agent responds to a current request, the response document MUST include the full set of key-value pairs. If the current request includes an at query parameter, the agent MUST provide the set of key-value pairs at the sequence number.

When an Observation reset occurs, the DataSet MUST remove all key-value pairs making the set empty. The Observation MAY simultaneously populate the DataSet with new key-value pairs. The previous entries MUST NOT be included and MUST NOT have removed as true.

When the Observation is UNAVAILABLE the DataSet MUST remove all key-value pairs making the set empty.

Discrete

DEPRECATED Representation for an Observation where each discrete occurrence of the data may have the same value as the previous occurrence of the data.

Description

Discrete for an Observation is defined by the associated representation as DISCRETE.

representation as DISCRETE MUST have category as EVENT.

MTConnect Version 1.5 replaced representation as DISCRETE with discrete.

Each occurrence of the Observation MAY have the same value as the previous occurrence, and MUST NOT suppress duplicates.

Examples of Discrete: A PartCount reporting the completion of each part using a 1 to indicate completion of a single part, a Message that occurs each time a door opens.

Entry

key-value pair published as part of a DataSet.

Constraints for Entry Values

The value of each Entry MUST have the same restrictions as the value of an observation with representation as VALUE.

An Entry MAY be further constrained by the DataItem definition (see Device Information Model), for example a VariableDataSet having a string value MAY have a floating-point Temperature value. A restriction MUST NOT be broadened or removed, for example, the value "READY" MUST NOT occur with a TemperatureDataSet constrained to floating-point numbers.

EntryDefinition MAY provide the type and units of an key.

Representation

specifies the format and structure of result.

Description

The Representation type for an Observation is defined by the associated representation in the MTConnectDevices Response Document.

Value is the default Representation type for all Observation types.

The name of the Observation type is modified for all Representation types other than Value by appending the pascal case of the Representation type.

Example: The name for Sample Observation type Temperaturewith Representation type of TimeSeries becomes TemperatureTimeSeries.

TimeSeries

Representation for an Observation composed of a series of sampled data.

Description

TimeSeries for an Observation is defined by the associated representation as TIME_SERIES.

representation as TIME_SERIES MUST have category of SAMPLE.

TemperatureTimeSeries shows the model for Temperature (Sample type) with a Representation type of TimeSeries.

TemperatureTimeSeries

Note: See Representation Schema Diagrams for XML schema.

TimeSeries MUST report multiple values at fixed intervals in a single Observation. At minimum, one of sampleRate or sampleRate MUST be specified. When both are specified, the sampleRate supersedes the sampleRate.

timestamp MUST be set to the time the last value was observed. The duration MAY indicate the time interval from the first to the last value in the series.

Value Properties of TimeSeries defines additional attributes for an Observation with TimeSeries Representation type.

Value

default Representation type for all Observation types where result type is an MTConnect data type. See DataTypes.

Packages

Table

This section provides semantic information for the Representation type Table.

Source: MTConnect Institute model documentation, version 2.8.

MTConnect term dictionary ยท TAMS Model-Aware MTConnect Browser

An unhandled error has occurred. Reload ๐Ÿ—™