Installing & COnfiguring the thingworx for Manufacturing DEMO FACTORY & SIMULATOR Milan Thakker IoT Manufacturing Specialist 5/10/2017
Agenda Introduction to the ThingWorx Manufacturing Demo Factory Installing and connecting the Kepware Demo Factory Simulator
INTRO In this guide you will learn how to install and configure the ThingWorx Manufacturing Demo Factory (simulator enabled). Our Demo factory can be illustrated by the following layout:
INSTALLING ANG CONFIGURING the KEPWARE SIMULATOR
Step 1 – Upload the configuration data into Thingworx In ThingWorx for Manufacturing, click on the menu in the top right corner and select “Import configuration and data” Click “choose file,” locate the zip file “20170425141408.zip” from the package you downloaded, and click “Upload”
Step 2: Load the Simulator into Kepware Open KepServerEX’s configuration tool Click “open” and locate the .opf file: “Beta_Program_Simulator.opf” Open up project properties, and configure the connection with Thingworx Only modify the host and port!
Step 3: Establish the connection with Kepware Make sure you’re logged in as the administrator user Go to the composer of your ThingWorx instance, located at: “<yourThingWorxURL>:<yourPort>/Thingworx/Composer” Navigate to the application key section and view the key named “PTC.MfgSegment.Kepware_SimulatorKey” Copy this key into Kepware, under project properties > ThingWorx
Step 4: Activate the Simulator Open the Kepware Quick Client and select the “MODBUS.SigmaTile” tag grouping Write a “1” to the tag labeled “running” in the simulator to start generating parts. Do this for every tag grouping
STEP 5 – TESTING THE SIMULATOR TO TRIGGER ANOMALIES Write a 1 to any of the Boolean tags to “turn on” that state Causes the described issue in that property Should the machine be running? Is the machine running?
Step 6: Configure the IoT GAteway Open KepServerEX’s configuration tool Under IoT Gateway, click Add Agent and select REST Server Use whichever network adaptor ThingWorx and Kepware communicate over (localhost if both are installed on same host machine) Enable write endpoint and allow anonymous login Add all control parameters to the IoT Gateway
Step 7: Add The things and mashups for control Unzip the Simulator Assets file Import the .twx files as single entities into your instance of TWX Add the data files as single data files
To control the simulator View the mashup called “Kep_ControlConsole” You can find this mashup at the URL: http://<your_server>:<your_port>/Thingworx/Runtime/ind ex.html#master=PTC.DeveloperProgram.MasterMashup& mashup=KEP_ControlConsole To control the simulator View the mashup called “Kep_ControlConsole”