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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Configure ThingWorx Advisors

No ratings

 

 

Configure ThingWorx Advisors to remotely monitor your connected assets.

 

Guide Concept

 

This project will introduce ThingWorx Advisors.

 

Following the steps in this guide, you will learn how to add users, create a model to store data, and configure asset Properties.

 

We will show you how ThingWorx Advisors let you remotely monitor equipment without writing any code.

 

You'll learn how to

 

  • Configure ThingWorx Advsors
  • Connect ThingWorx Advisors to ThingWorx Kepware Server
  • Create assets in ThingWorx and tie them to data items in Kepware Server

 

NOTE: The estimated time to complete this guide is 60 minutes

 

 

 

Step 1: Configure Connection

 

This step shows how to open Controls Advisor, and configure the communication with ThingWorx Kepware Server.

 

Open Controls Advisor

 

    1. Click on Hosted Server Info to open your ThingWorx Foundation server.
    2. In ThingWorx Foundation Composer, click Browse then Visualization > Master then click PTC.Factory.PlantStatus.Master.
       

      open-plantstatus-master.jpg

    3. Next click View Mashup button. 
       

      view-mashup.png

    4. Click the App Switcher icon in the upper left. 
       

      utility-menu.png

Create Connection

 

  1. In the top-left, click the app switcher icon.
  2. Click Controls Advisor in the app switcher.

 

 

click-controls-advisor

 

 

3. Click the + icon to add a new Connection.

 

 

click-plus-add-connection

 

 

4. Enter my-kepware-connection in the Connection Name field.

5. Click the wand icon in the Application Key User Name dropdown and select Administrator.

6. Click the Application Key Expiration Date date picker and select a date a year in the future.

 

 

create-connection

 

 

7. Click Done to close the date picker, then click OK.

8. Information that you will enter in Kepware is shown, click Print Instructions to save.

 

 

connection-summary

 

 

NOTE: If no port is shown, use 80 for an HTTP connection or 443 for an HTTPS connection.

9. Click Close to close the connection inforamtion pop-up.

10. The information is always available by selecting the Key icon in Controls Advisor.

 

 

new-connection-saved

 

 

 

Configure Communication with Kepware

 

  1. Open ThingWorx Kepware Server configuration tool using either the desktop shortcut or the task bar icon.
     

    ope-kepware.png

  2. Right click Project and select Properties to configure the connection with ThingWorx.

 

kepware-properties

 

 

3, Select ThingWorx in left panel. Under Connection Settings, update the HostPort and Application Key to match your ThingWorx server.

 

 

/kepware-thingworx-settings

 

 

NOTE: All the required information is available in the "print" browser tab from the previous step. If no port number is shown, use 80 for an HTTP connection or 443 for an HTTPS connection.

 

4. Set Disable Encryption to No and Trust all Certificates to Yes.

5. Enter my-kepware-connection-GW in Thing name.

6. Click Apply, then OK.

7. Check Connected to ThingWorx is shown in Kepware.

 

KinexMfg_KepwareTWXConnected.png


NOTE
: The message displayed should say: Connected to ThingWorx

 

Troubleshooting

 

If you are unable to make a connection from KEPServerEX®, try the following:

 

  • Verify that the information you entered into the KEPServerEX Project Properties is exactly as displayed in the on-screen set-up instructions.
  • If KEPServerEX is on a different machine than ThingWorx® ensure that your firewall is set to allow incoming connections on the port specified.

 

 

Step 2: Add User

 

In this part of the lesson, you'll create a User and modify permissions.

 

  1. Click the grid icon located in the upper left to switch to a different utility.

    7_1.png

     

  2. Click the Configuration and Setup utility icon. 

    config-setup.png

     

  3. Click the Users tab, then click the Plus icon to open the Create User pop-up.

    add-user-plus-icon.png

     

  4. Enter a User Name that is at least 3 characters.

    add-user-name.png

     

  5. Enter the required First Name and Last Name.
  6. Although they will not be used in this guide, enter the required Email and Work Phone.
  7. Enter Mobile Phone including + and country code, +1 for US mobile phones.
  8. Check the SMS Notification Preference.

    add-user-email-phone.png

     

  9. Enter a Password of at least 14 characters, then re-enter it in the Confirm Password field.

    add-user-email-phnnum.png

     

  10. Create a User for yourself as a Controls Engineer. This role gives access to all of the Advisors installed on the system. The other roles are given a subset of the Advisors, depending on the functionality they need to perform their jobs.  

 

 

 

Step 3: Create a Model

 

In this part of the lesson, you will create a Model to store data.

 

  1. If Configuration and Setup is not already open, click the Utility Selector grid in the upper left, then click the Configuration and Setup utility icon. 

    config-setup.png

     

  2. Click on the Equipment tab.

    equipment-tab.png

     

  3. Click on the + icon on the top left to add a new asset.

    Create-new-plus.png

     

  4. Set the new resource to Asset and name it Asset1.

    freezercase-select-type.png

    NOTE: You can also enter a description.

  5. Create another resource, this time with the Type set to Line. Name it Station A.
  6. After both resources have been created, select Asset1 and then click the pencil icon to configure it.
  7. On the Asset Configuration Details page, locate the Related Lines table. Click the + icon to relate line to the asset.

    10_1.png

     

  8. Select Station A, then click Add.


 

Step 4: Configure Asset Properties

 

  1. From the Administration and Configuration page for Asset1, click Additional Properties located in the left-hand navigation pane.

    AdditionalProperties.jpg

     

  2. Click the + icon to add a new property to the asset.
  3. Name the Property Temp.
    NameProperty.jpg

     

  4. Click the tag picker icon to associate this property in ThingWorx with a data tag from KEPServerEX.
  5. In the Resource Type drop-down, choose KEPServerEX.
  6. Select your server name (for this exercise, we use KEPServerEX.Local).

    NOTE: You will see a hierarchical view of all tags available from your KEPServerEX instance.

  7. In the left column, scroll down to Ch1 and click the triangle icon to expand it.
  8. Click Ch1.Asset1 to see the available Tags in the right column.

    Ch1 Asset1.jpg

     

  9. Select Temperature, then click OK.
  10. Click Save to save this Property.

    TIP: For additional practice, try to add a few more assets.

 

Step 5: Next Steps

 

Congratulations! You've successfully completed the Configure ThingWorx Advisors guide.

In this guide, you learned how to configure ThingWorx Advisors to connect to KEPServerEX and connect an asset.

 

Additional Resources

 

If you have questions, issues, or need additional information, refer to:

 

ResourceLink
CommunityThingWorx Advisors Community
SupportKepware Technical Support
Asset Advisor for service HomeThingWorx Asset Advisor for service
Version history
Last update:
‎Nov 11, 2022 03:25 PM
Updated by:
Labels (1)
Contributors