cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Connect Industrial Devices and Systems Part 1

No ratings

 

Connect Devices and Equipment Using Industry-Standard Protocol Drivers in ThingWorx

 

GUIDE CONCEPT

 

This guide has step-by-step instructions for connecting ThingWorx Kepware Server to ThingWorx Foundation.

 

This guide will demonstrate the ease of connecting edge industrial equipment to ThingWorx Foundation without installing any software on production equipment.

 

We will also show how connecting different systems and devices improves operations through the creation of business intelligence.

 

 

YOU'LL LEARN HOW TO

 

  • Connect ThingWorx Kepware Server to ThingWorx Foundation
  • Secure the connection with an Application Key
  • Create an IndustrialGateway Thing
  • Map ThingWorx Kepware Server Tags to ThingWorx Foundation Thing Properties
  • Visualize Data from connected digital assets

 

Note: The estimated time to complete this guide is 30 minutes

 

 

Step 1: Installation

 

  1. Download the ThingWorx Kepware Server executable application from MyKepware.
  2. If you desire installation instructions, you may find them in the attached guide: install-thingworx-kepware-server.zip .
  3. Navigate to START -> PTC.
  4. Click ThingWorx Kepware Server 6 Configuration.

    03-itks-open-kepware.png

     

 

 

 

 



 

 

 

 

 

 

 

 

For additional information on ThingWorx Kepware Server, click Help -> Server Help on the Menu Bar.

 

04-itks-help-serverhelp.png

 

 

 

Step 2: Create Gateway

 

To make a connection between ThingWorx Kepware Server and Foundation Server, you must first create a Thing.

 

WARNING: To avoid a timeout error, create a Thing in ThingWorx Foundation BEFORE attempting to make the connection in ThingWorx Kepware Server.

 

  1. In ThingWorx Foundation Composer, click Browse > Modeling -> Things.

    01-cids-things.png

     

  2. Click + NEW.
  3. In the Name field, type IndConn_Server, including matching capitalization.
  4. In the Description field, enter an appropriate description, such as Industrial Gateway Thing to connect to ThingWorx Kepware Server.
  5. If the Project field is not already set, search for and select PTCDefaultProject.
  6. In the Base Thing Template field, search for and select IndustrialGateway.

    01-cids-new-thing.png

     

  7. Click Save.
 
 

Step 3: Create an AppKey

 

To secure the connection between ThingWorx Foundation and ThingWorx Kepware Server, you need to utilize an Application Key.

 

  1. In ThingWorx Foundation, click Browse > Security -> Applications Keys.

    03-cids-appkeys.png

     

  2. Click + New.
  3. In the Name field, type IndConn_AppKey.
  4. If Project is not already set, search for and select PTCDefaultProject.
  5. Set User Name Reference to the Administrator User.
  6. Click Yes on the warning pop-up.

    04-cids-admin-warning.png

     

  7. Assign an Expiration Date that is far enough in the future to not interfere with your trial.

    02-cids-new-appkey.png

     

  8. Click Save.

    03-cids-appkey-saved.png

     

  9. Under Key ID, click the page icon to the right of the Application Key string to copy it.

    06-cids-copy-appkey.png

     

 

Step 4: Connect to Foundation

 

Now that you’ve created an IndustrialGateway Thing and an Application Key, you can configure ThingWorx Kepware Server to connect to ThingWorx Foundation.

 

  1. Return to the ThingWorx Kepware Server Windows application.
  2. Right-click Project.
  3. Select Properties….

    Twix_Properties.png

     

  4. In the Property Editor pop-up, click ThingWorx.
  5. In the Enable field, select Yes from the drop-down.
  6. In the Host field, enter the IP address or URL of your ThingWorx Foundation server.
  7. Enter the Port number. If you are using the "hosted" Developer Portal trial, enter 443.
     
    IoTProductMgmt_1-1666982122770.png

     

  8. In the Application Key field, copy and paste the Application Key you just created.
  9. In the Trust self-signed certificates field, select Yes from the drop-down.
  10. In the Trust all certificates field, select Yes from the drop-down.
  11. In the Disable encryption field, select No from the drop-down if you are using a secure port. Select Yes if you are using an http port.
  12. Type IndConn_Server in the Thing name field, including matching capitalization.
  13. If you are connecting with a remote instance of ThingWorx Foundation and you expect any breaks or latency in your connection, enable Store and Forward.
  14. Click Apply in the pop-up.
  15. Click Ok.

 

In the ThingWorx Kepware Server Event window at the bottom, you should see a message indicating Connected to ThingWorx.

 
Twix_Connected.png
 

NOTE: If you do not see the "Connected" message, repeat the steps above, ensuring that all information is correct. In particular, check the Host, Port, and Thing name fields for errors.

 
 

Click here to view Part 2 of this guide.

Version history
Last update:
‎Mar 07, 2023 07:41 AM
Updated by:
Labels (2)
Attachments