lexicon
Id: eco.wonderland.workcell.sample
Type: lexicon
Objects
Section titled “Objects”- mtConnectStreams: Root entity of a streams response that contains the observation information of one or more device entities.
- mtConnectError: Root entity of an errors response that contains the error information.
- mtConnectStreamsExceptionsReport: MtConnectExceptionsReport where exception is encountered in the streams response.
Subscriptions
Section titled “Subscriptions”Schema
Section titled “Schema”{ "id": "eco.wonderland.workcell.sample", "lexicon": 1, "defs": { "main": { "type": "subscription", "parameters": { "type": "params", "required": [ "did" ], "properties": { "heartbeat": { "type": "integer" }, "interval": { "type": "integer" }, "from": { "type": "integer" }, "to": { "type": "integer" }, "count": { "type": "integer" }, "device": { "type": "string" }, "deviceType": { "type": "string" }, "did": { "type": "string" } } }, "message": { "schema": { "type": "union", "refs": [ "#mtConnectStreams", "#mtConnectError", "#mtConnectStreamsExceptionsReport" ] } } }, "mtConnectStreams": { "type": "object", "required": [ "header" ], "properties": { "header": { "type": "ref", "ref": "lex:eco.wonderland.workcell.protocol.mtconnect.stream.defs#header" }, "streams": { "type": "array", "items": { "type": "ref", "ref": "lex:eco.wonderland.workcell.observation.defs#deviceStream" } } } }, "mtConnectError": { "type": "object", "required": [ "header", "errors", "error" ], "properties": { "header": { "type": "ref", "ref": "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#header" }, "errors": { "type": "ref", "ref": "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#errors" }, "error": { "type": "union", "refs": [ "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#error", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#assetNotFound", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#internalError", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#invalidParameterValue", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#invalidQueryParameter", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#invalidRequest", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#invalidURI", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#invalidPath", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#noDevice", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#outOfRange", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#queryError", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#tooMany", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#unauthorized", "lex:eco.wonderland.workcell.protocol.mtconnect.error.defs#unsupported" ] } } }, "mtConnectStreamsExceptionsReport": { "type": "object", "required": [ "exceptions" ], "properties": { "exceptions": { "type": "array", "minLength": 1, "items": { "type": "ref", "ref": "lex:eco.wonderland.workcell.protocol.mtconnect.exception.defs#exception" } }, "header": { "type": "ref", "ref": "lex:eco.wonderland.workcell.protocol.mtconnect.stream.defs#header" } } } }}