Skip to main content

General

Connect MTConnect

Reference guide for MTConnect communication in CNC and machine-tool data collection.

The MTConnect driver is designed for CNCs and machine tools that expose a standard MTConnect Agent endpoint. It reads machine hierarchy and live observations through probe/current/sample flows.

Supported Models & Protocol Type

Use ProtocolType.MTConnect for MTConnect-compatible devices.

Protocol TypeHardwareNotes
MTConnectCNC / machine toolsRequires reachable MTConnect Agent endpoint

Connection Parameters

ParameterTypeRequiredTypical ValueDescription
HoststringYeshttp://192.168.1.20:5000MTConnect Agent endpoint. Include port in the URL when needed.
PollingIntervalintNo1000Read cycle in milliseconds. Lower values increase freshness and load.
ConnectTimeoutintNo3000-10000Connection timeout in milliseconds.
ReceiveTimeoutintNo3000-15000Read timeout in milliseconds.
info
Host Format

Use a full endpoint when possible (for example http://192.168.1.20:5000).

lightbulb
Edge Deployment Best Practice

In distributed plants, place the data connection on the Edge Gateway closest to the machine network. Then use gateway-based remote browse from the central console.


Address Syntax

MTConnect tag addresses follow this format:

<DeviceName>/<ComponentPath>/<DataItemId>

Address Components

ComponentDescriptionExample
DeviceNameMTConnect device nameMazak-01
ComponentPathDot-separated component/composition pathAxes.Spindle
DataItemIdMTConnect data item idload

Examples

AddressDescription
Mazak-01/Controller/execData item under controller component
Mazak-01/Axes.Spindle/cool_condNested component path
Mazak-01/availRoot-level data item

Browse and Tag Selection

Start from the profile screen button:

MTConnect Browser button
MTConnect Browser button

  1. Open Browse Tags / MTConnect Browser.
  2. Select a Gateway.
  3. Browser loads hierarchy from the selected edge.
  4. Select DataItem / Condition rows.
  5. Click OK to sync selected rows to profile tags.

Selection behavior:

  • Existing profile tags are pre-selected.
  • Unselected previously mapped rows are removed from profile tags.
  • Duplicate DataItemId rows are handled safely in live value merge.

MTConnect Browser popup
MTConnect Browser popup


Data Read Strategy

Snapshot + Incremental Streaming

The driver uses a two-phase read model:

  1. Initial full snapshot from current.
  2. Incremental updates from sample with sequence tracking.

Restart and Recovery

If the agent instance changes (restart/reset), the driver falls back to current, then resumes incremental mode.

Re-Probe Refresh

Device/item cache is refreshed periodically (every 5 minutes) to keep topology aligned with agent changes.


Data Quality Mapping

Data CategoryIncoming ValueQuality
Standard DataItemnormal valueGood
Standard DataItemUNAVAILABLEUncertain
ConditionNormalGood
ConditionWarningUncertain
ConditionFaultBad

Condition values can be emitted in:

<Level>|<NativeCode>|<Text>

Example:

Fault|X123|Hydraulic pressure low

Performance Notes

  • Incremental sample flow reduces repeated full payload reads.
  • Periodic re-probe keeps item cache up to date.
  • Batch reads return per-tag quality (Good/Uncertain/Bad) for downstream processing.

Troubleshooting

SymptomLikely CauseAction
No nodes in browserWrong host/URL, agent unreachable, or empty probeValidate MTConnect endpoint from selected gateway network
Frequent UNAVAILABLEData item not emitted, machine state mismatch, or unstable networkVerify data item in agent output; review polling/timeout settings
Works on one gateway, fails on anotherNetwork segmentation / VLAN / firewallUse gateway in the same machine network zone
Values stale after topology changeAgent model changedRe-open browser and re-sync selected tags
lightbulb
Operational Validation

Before production rollout, test normal run, agent restart, and temporary edge disconnect scenarios.

info
See Also

For a unified view of all protocol browsers, see the Tag Browser page.

Official Resources