How-To Guides
DeviceHub Guides

Use the Mazak MTConnect Demo Agent to Connect a Device

2min

MTConnect is a read-only protocol commonly used by CNC machines.

Mazak provides a publicly accessible tool that can be used to test your device setup. See Mazak MTConnect Demo Agents for more information.

Step 1: Add MTConnect Device

To add the MTConnect Device:

  1. In Manufacturing Connect Edge, navigate to DeviceHub > Devices.
  2. Click Add New Device. The Connect Device dialog box appears.

    Add new device icon
    Add new device icon
    
  3. In the Device Type drop-down list, select MTConnect.
  4. In the Driver Name drop-down list, select MTConnect Ethernet (Gen1).
  5. Configure the following parameters.
    • Name: Enter a name for the device.
    • Description: Enter a description for the device.
    • Network Address: Enter the device IP address. To get the IP address, you can use the command prompt to ping the device at Mazak with the following command: C:\Users\<your username> ping mtconnect.mazakcorp.com. Copy and paste the IP address in the response.
      • The Network Address is the IP address of the device running the MTConnect protocol. For Manufacturing Connect Edge only, the IP is used without "http://" even if it is an HTTP-based protocol. The MTConnect connection can also be accessed from a browser. See http://mtconnect.mazakcorp.com:5717 to view the XML Document Tree.
    • Network Port: Enter 5717. The Network Port is the port for which the MTConnect server is listening. It is the same port used by the URL. The above link for the XML Document Tree uses the same port as your device.
    • Device Name: Enter the device name.
      • The Device Name is unique to MTConnect but crucial. MTConnect operates using an XML-based schema to be able to locate which tags to read. You must provide the name of the device as the schema can potentially hold the data for multiple devices.
      • To find the device name, you can run the probe URL. See http://mtconnect.mazakcorp.com:5717/probe to view the XML schema. You can locate the name for the device to be connect under a <Device id> tag. The value to be used is for the name key.
      • 

        Device ID parameter
        Device ID parameter
        
    • Enable Alias Topics: Select the check box.
    • Enable Data Store: Select the check box.
  6. Click Add Device. MTConnect is a browsing-based driver and requires at least one tag to be added before showing as Connected.

Step 2: Browse for Tags

To browse for tags:

  1. Navigate to DeviceHub Tags.
  2. Click the Add New Tag and select Browse Tags. The Browse Tags dialog box appears.
  3. Select the MTConnect device. The tags list drops down. It may be necessary to manually refresh the tag browser if it does not show the expected result. This can happen if the device was created with the wrong IP address, port, or device name. In this case, the first browsing will return no results, but a dummy browsing list is created when refreshed. You can edit the device and correct the mistake, and then try to browse tags again. If the dummy browsing list appears again, refresh the browse list.

    Browse tags list
    Browse tags list
    
  4. Select the tags to add.
  5. Click Add.
  6. Navigate to Devices. The MTConnect device shows as CONNECTED in the Devices pane.