Configuring MTConnect and MindSphere

Procedure

  1. Ensure that MTConnect is correctly installed on the machine side.
    Further information can be found at: MTConnect project page

  2. Start the configuration on the IPC page.

  3. Navigate to
    C:\Program Files\Siemens\cppagent_bin\bin

  4. Open the file "agent.cfg" in an editor.
    You see the following content.

    129374596619.png
  5. Enter the IP address of your machine, e.g.:

    129377063179.png
  6. Configure an XML file that defines your machine.

    The XML file must contain the following IDs:

    • /Bag/State/opMode[u1]

    • /Nck/Configuration/accessLevel

    • /Channel/State/progStatus[u1]

    • /Channel/State/stopCond[u1]

    • /Channel/ProgramPointer/progName[u1,1]

    • /Channel/State/feedRateIpoOvr[u1]

    • /Channel/Spindle/speedOvr[u1,1]

    The angle brackets specify the beginning and end of the respective line in the following XML code.

</Components>

<Axes id="ax" name="Axes">

<Components/>

</Axes>

<Controller id="controller1" name="cn1">

<DataItems>

<DataItem category="EVENT" id="/Bag/State/opMode[u1]" name="cn1_mode" type="CONTROLLER_MODE"/>

 <DataItem category="SAMPLE" id="/Nck/Configuration/accessLevel" name="accessLevel" type="EXECUTION"/>

</DataItems>

<Components>

<Path id="path1" name="p1">

<DataItems>

<DataItem category="SAMPLE" id="/Channel/State/progStatus[u1]" name="p1_execution" type="EXECUTION"/>

<DataItem category="EVENT" id="/Channel/State/stopCond[u1]" name="p1_optional_stop" type="CONTROLLER_MODE_OVERRIDE" subType="OPTIONAL_STOP"/>

<DataItem category="SAMPLE" id="/Channel/ProgramPointer/progName[u1,1]" name="p1_program" type="PROGRAM"/>

<DataItem category="SAMPLE" id="/Channel/State/feedRateIpoOvr[u1]" name="p1_feedrate_override" type="PATH_FEEDRATE_OVERRIDE" subType="PROGRAMMED" units="PERCENT"/>

<DataItem category="SAMPLE" id="/Channel/Spindle/speedOvr[u1,1]" name="p1_spindle_override" type="ROTARY_VELOCITY_OVERRIDE" units="PERCENT"/>

</DataItems>

</Path>

</Components> 

</Controller>

</Components>

Restart your PC.

After the configuration, the directory should look like:

129377746699.png

Checking the configuration

  1. To check the configuration, enter the following address:
    http://127.0.0.1:5000/current
    If the page is not displayed, check the log files of the agent. The storage location of the log files is specified in the agent .cfg file.

  2. If the values are not correctly displayed on the Dashboard, check the following file:
    C:\Program Files\Siemens\3rdPartyController\mapMTConnect.xml
    All inputs to MindSphere are displayed here.

  3. If your machine sends the message "Running?" in the active status, then enter a different alias, e.g. "OFF", or "UNAVAILABLE" in the area "/Channel/State/stopCond[u1]".
    The application then follows the new mapping.

    NOTE

    Valid XML file

    After the changes, check whether you have generated a valid XML file.