Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
This guide has step-by-step instructions for connecting ThingWorx Kepware Server to ThingWorx Foundation. This guide will demonstrate how easily industrial equipment can be connected to ThingWorx Foundation without installing any software on production equipment. NOTE: This guide's content aligns with ThingWorx 9.3. The estimated time to complete ALL 2 parts of this guide is 30 minutes.
This guide explains the steps to connect ThingWorx Kepware Server with ThingWorx Foundation and is part of the Connect and Monitor Industrial Plant Equipment Learning Path.
You can use this guide independently from the full Learning Path. If you want to learn to connect ThingWorx Kepware Server to ThingWorx Foundation, this guide will be useful to you.
When used as part of the Industrial Plant Learning Path, you should have already installed ThingWorx Kepware Server and created an Application Key. In this guide, we will send information from ThingWorx Kepware Server into ThingWorx Foundation. Other guides in this learning path will use Foundation's Mashup Builder to construct a website dashboard that displays information and from ThingWorx Kepware Server. We hope you enjoy this Learning Path.
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.
Now that you’ve created an IndustrialGateway Thing and an Application Key, you can configure ThingWorx Kepware Server to connect to ThingWorx Foundation.
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 URL or IP address of your ThingWorx Foundation server, Do not enter http://
7. Enter the Port number. If you are using the "hosted" Developer Portal trial, enter 443.
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.
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.
Now that you've established a connection, you can use ThingWorx Foundation to inspect all available information on ThingWorx Kepware Server.
ThingWorx Kepware Server includes some information by default to assist you with verifying a valid connection with ThingWorx Foundation.
6. Expand Simulation Examples.
7. Click Functions. On the right, you’ll see several pre-defined Tags to assist with connectivity testing.
8. Click the checkbox next to Random3.
9. Click Bind to New Entity.
10. In the Choose Template pop-up, select RemoteThing and click OK.
You’ll now be in an interface to create a new Thing with a predefined Property based on ThingWorx Kepware Server Tag1.
4. Click Save.
The IndConn_Tag1 Thing you created now has a Property with a value that will change with each update from ThingWorx Kepware Server. The Tag1 we utilized is a 'ramp' and therefore, the value will increase at regular intervals.
Click here to view Part 2 of this guide.