Status tags
Innorobix Inc.
Each connection has a _Status folder in the MTConnect tag provider, next to
the machine tags. It has the same status tags every Innorobix module offers:
MTConnect/<connection name>/_Status/Connected
/State
/LastError
/LastUpdate
/ReconnectCount
/LicenseState
/ProtocolErrors
The machine tags and the <connection name>/Connected tag are separate from the _Status folder.
The Connected tag (MTConnect/<connection name>/Connected) is not the same as
_Status/Connected; use the one your screens are bound to.
| Tag | Meaning |
|---|---|
State |
Connecting, Connected, Reconnecting, Disabled, Not licensed |
Connected |
true only in state Connected |
LastError |
why the agent could not be read (one line, no user name or password), or why the connection is not licensed; empty while connected |
LastUpdate |
end of the last successful poll |
ReconnectCount |
how many times a working connection was lost since the connection was started; a first connection that never worked is not counted |
LicenseState |
TRIAL, LICENSED, EXPIRING or EXPIRED, as the module licence sees it; empty until the licence is known |
ProtocolErrors |
present and always 0 |
Things to know:
- A connection that is disabled in the configuration, or that is configured but
not started because of the licence (the 2-connection trial, the licence limit
or an ended licence), shows its
_Statusfolder. After a gateway restart it has no machine tags; a connection you disable while the gateway is running keeps the machine tags it already had.Disabledmeans you disabled it;Not licensedmeans the licence does not let it run, andLastErrorsays why. - Editing a connection restarts it, so
Stategoes throughConnectingagain andReconnectCountstarts again at 0. - A connection name that contains
.,/, brackets, quotes, or starts with_has no_Statusfolder. Choose another name if you want one (changing the name moves the tag folder, so update your bindings). - Changing the name of a connection that is disabled or not licensed removes the old
<name>/_Statusfolder; an empty old<name>folder (and, for a connection disabled by an edit, its oldConnectedtag) stays in the tag provider. Delete it by hand if you do not need it. LastErrornames the URL and the number of attempts, for exampleFailed to retrieve XML from 'http://host:5000/current' after 3 attempt(s). The reason (HTTP status, connection refused, timeout) is not appended, so check the gateway log or the agent. User names and passwords in a URL are replaced by***.- HTML and MHT sources are read with the jsoup library, which the module bundles.
If a connection points at something that is not an MTConnect agent (a web page
on port 80, a proxy login page), the module does not report an error:
Statecan stayConnected,LastErrorstays empty and the values stop changing. If values freeze, open the agent URL (/current) in a browser and check it returns MTConnect XML. - The module only reads from the machine (HTTP GET). The
_Statustags are information only; writing to them does not reach the machine.
Generated from the module's documentation for version 8.14.0. Questions: contact us.
