MTConnect 2.8 class

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.

Introduced in MTConnect 1.2.

Abstract class.

Subclasses

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.

Table

Representation for an Observation composed of two-dimensional sets of key-value pairs where the Entry represents rows containing sets of key-value pairs given by Cell entities.

Description

Table for an Observation is defined by the associated representation as TABLE.

representation as TABLE MUST have category as SAMPLE or EVENT.

WorkOffsetTable shows the model for WorkOffset (Event type) with a Representation type of Table.

WorkOffsetTable

Note: See Representation Schema Diagrams for XML schema.

Table has the same behavior as the DataSet for change tracking, clearing, and history. When an Entry changes, all Cell entities update at the same time; they are not tracked separately like Entry.

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

key MUST be the unique identity of the Entry within an Observation. key MUST be the unique identity of the Cell within an Entry.

Table Example shows Event Observation type WorkOffset with a Representation type of Table.

Table Example

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

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.

Source: MTConnect Institute model documentation, version 2.8.

MTConnect term dictionary ยท TAMS Model-Aware MTConnect Browser

An unhandled error has occurred. Reload ๐Ÿ—™