MTConnect 2.8 package

Interface Interaction Model

In many manufacturing processes, multiple pieces of equipment must work together to perform a task. The traditional method for coordinating the activities between individual pieces of equipment is to connect them using a series of wires to communicate equipment states and demands for action. These interactions use simple binary ON/OFF signals to accomplished their intention.

In the MTConnect Standard, interfaces provides a means to replace this traditional method for interconnecting pieces of equipment with a structured interaction model that provides a rich set of information used to coordinate the actions between pieces of equipment. Implementers may utilize the information provided by this data model to (1) realize the interaction between pieces of equipment and (2) to extend the functionality of the equipment to improve the overall performance of the manufacturing process.

The interaction model used to implement interfaces provides a lightweight and efficient protocol, simplifies failure recovery scenarios, and defines a structure for implementing a Plug-And-Play relationship between pieces of equipment. By standardizing the information exchange using this higher-level semantic information model, an implementer may more readily replace a piece of equipment in a manufacturing system with any other piece of equipment capable of providing similar interaction model functions.

Two primary functions are required to implement the interaction model for an interfaces and manage the flow of information between pieces of equipment. Each piece of equipment needs to have the following:

  • An agent which provides:
  • The data required to implement the interaction model.

  • Any other data from a piece of equipment needed to implement the interface โ€“ operating states of the equipment, position information, execution modes, process information, etc.

  • A client software application that enables the piece of equipment to acquire and interpret information from another piece of equipment.

Interfaces Architecture

MTConnect Standard is based on a communications method that provides no direct way for one piece of equipment to change the state of or cause an action to occur in another piece of equipment. The interaction model used to implement interfaces is based on a publish and subscribe type of communications as described in Fundamentals and utilizes a request and response information exchange mechanism. For interfaces, pieces of equipment must perform both the publish (agent) and subscribe (client) functions.

Note: The current definition of interfaces addresses the interaction between two pieces of equipment. Future releases of the MTConnect Standard may address the interaction between multiple (more than two) pieces of equipment.

Data Flow Architecture for Interfaces

Note: The data flow architecture illustrated in Data Flow Architecture for Interfaces was historically referred to in the MTConnect Standard as a read-read concept.

In the implementation of the interaction model for interfaces, two pieces of equipment can exchange information in the following manner. One piece of equipment indicates a request for service by publishing a type of request using a data item provided through an agent as defined in DataItem Types for Interface. The client associated with the second piece of equipment, which is subscribing to data from the first machine, detects and interprets that request. If the second machine chooses to take any action to fulfill this request, it can indicate its acceptance by publishing a response using a data item provided through its agent. The client on the first piece of equipment continues to monitor information from the second piece of equipment until it detects an indication that the response to the request has been completed or has failed.

An example of this type of interaction between pieces of equipment can be represented by a machine tool that wants the material to be loaded by a robot. In this example, the machine tool is the requester, and the robot is the responder. On the other hand, if the robot wants the machine tool to open a door, the robot becomes the requester and the machine tool the responder.

Request and Response Information Exchange

The DataItem elements defined by the interaction model each have a REQUEST and RESPONSE subtype. These subtypes identify if the data item represents a request or a response. Using these data items, a piece of equipment changes the state of its request or response to indicate information that can be read by the other piece of equipment. To aid in understanding how the interaction model functions, one can view this interaction model as a simple state machine.

The interaction between two pieces of equipment can be described as follows. When the requester wants an activity to be performed, it transitions its request state from a READY state to an ACTIVE state. In turn, when the client on the responder reads this information and interprets the request, the responder announces that it is performing the requested task by changing its response state to ACTIVE. When the action is finished, the responder changes its response state to COMPLETE. This pattern of request and response provides the basis for the coordination of actions between pieces of equipment. These actions are implemented using EVENT category data items. (See DataItem Types for Interface for details on the Event type data items defined for interfaces.)

Note: The implementation details of how the responder piece of equipment reacts to the request and then completes the requested task are up to the implementer.

Request and Response Overview

The initial condition of both the request and response states on both pieces of equipment is READY. The dotted lines indicate the on-going communications that occur to monitor the progress of the interactions between the pieces of equipment.

The interaction between the pieces of equipment as illustrated in Request and Response Overview progresses through the sequence listed below.

  • The request transitions from READY to ACTIVE signaling that a service is needed.

  • The response detects the transition of the request.

  • The response transitions from READY to ACTIVE indicating that it is performing the action.

  • Once the action has been performed, the response transitions to COMPLETE.

  • The request detects the action is COMPLETE.

  • The request transitions back to READY acknowledging that the service has been performed.

  • The response detects the request has returned to READY.

  • In recognition of this acknowledgement, the response transitions back to READY.

After the final action has been completed, both pieces of equipment are back in the READY state indicating that they are able to perform another action.

Classes

Interface

abstract Component that coordinates actions and activities between pieces of equipment.

Requester

Review the MTConnect definition and model details for Requester, an MTConnect class.

Responder

Review the MTConnect definition and model details for Responder, an MTConnect class.

Packages

Data for Interface

Each interface MUST provide the data associated with the specific interface to implement the interaction model and any additional data that may be needed by another piece of equipment to understand the operating states and conditions of the first piece of equipment as it applies to the interface.

Details on data items specific to the interaction model for each type of interface are provided in DataItem Types for Interface.

An implementer may choose any other data available from a piece of equipment to describe the operating states and other information needed to support an interface.

References for Interface

Some of the data items needed to support a specific interface may already be defined elsewhere in the MTConnectDevices Response Document for a piece of equipment. However, the implementer may not be able to directly associate this data with the interface since the MTConnect Standard does not permit multiple occurrences of a piece of data to be configured in an MTConnectDevices Response Document. References provides a mechanism for associating information defined elsewhere in the information model for a piece of equipment with a specific interface.

References organizes Reference elements.

Reference is a pointer to information that is associated with another entity defined elsewhere for a piece of equipment.

References is an economical syntax for providing interface specific information without directly duplicating the occurrence of the data. It provides a mechanism to include all necessary information required for interaction and deterministic information flow between pieces of equipment.

For more information on the References model, see Device Information Model.

DataItem Types for Interface

Each Interface contains data items which are used to communicate information required to execute the interface. When these data items are read by another piece of equipment, that piece of equipment can then determine the actions that it may take based upon that data.

InterfaceState is a data item specifically defined for interfaces. It defines the operational state of the interface. This is an indicator identifying whether the interface is functioning or not. See InterfaceState for complete semantic details.

Some data items MAY be directly associated with the Interface element and others will be organized by a References element. It is up to an implementer to determine which additional data items are required for a particular interface.

Specific Data Items for the Interaction Model for Interface

A special set of data items have been defined to be used in conjunction with Interface. They provide information from a piece of equipment to request a service to be performed by another associated piece of equipment; and for the associated piece of equipment to indicate its progress in performing its response to the request for service. .

Many of the data items describing the services associated with an interface are paired to describe two distinct actions โ€“ one to request an action to be performed and a second to reverse the action or to return to an original state. For example, a DoorInterface will have two actions OpenDoor and CloseDoor. An example of an implementation of this would be a robot that indicates to a machine that it would like to have a door opened so that the robot could extract a part from the machine and then asks the machine to close that door once the part has been removed.

When these data items are used to describe a service associated with an interface, they MUST have one of the following two subType elements: REQUEST or RESPONSE. These MUST be specified to define whether the piece of equipment is functioning as the requester or responder for the service to be performed. The requester MUST specify the REQUEST subType for the data item and the responder MUST specify a corresponding RESPONSE subType for the data item to enable the coordination between the two pieces of equipment.

These data items and their associated subType provide the basic structure for implementing the interaction model for an interface and are defined in the following sections.

Request State Machine and Response State Machine show possible state transitions for a request and response respectively. The state machine diagrams provide the permissible values of the observations for the DataItem types listed in this section.

Request State Machine

Response State Machine

Interface Types

The abstract Interface is realized by the following types listed in this section.

In order to implement the interaction model for interfaces, each piece of equipment associated with an interface MUST provide the corresponding Interface type. A piece of equipment MAY support any number of unique interfaces.

Interfaces for Device and Observation Information Models

The interaction model for implementing interfaces is defined in the MTConnect Standard as an extension to the Device Information Model and Observation Information Model.

A piece of equipment MAY support multiple different interfaces. Each piece of equipment supporting interfaces MUST model the information associated with each interface as an Interface component. Interface is an abstract Component and is realized by Interface component types.

The Interfaces in Entity Hierarchy illustrates where an Interface is modeled in the Device Information Model for a piece of equipment.

Interfaces in Entity Hierarchy

Operation and Error Recovery

The request and response state model implemented for interfaces may also be represented by a graphical model. The scenario in Success Scenario demonstrates the state transitions that occur during a successful request for service and the resulting response to fulfill that service request.

Success Scenario

Signals

Review the MTConnect definition and model details for Signals, an MTConnect package.

Source: MTConnect Institute model documentation, version 2.8.

MTConnect term dictionary ยท TAMS Model-Aware MTConnect Browser

An unhandled error has occurred. Reload ๐Ÿ—™