The PTC Community email address has changed to email@example.com. Learn more.
The Mashup now has access to the backend data via get/set Data Services.
In this step, you will tie these Data Services to the Checkbox Widgets to pull and push information.
The GetProperties Mashup Data Service will now propagate the State of Coil2 and Coil3 from the PLC onto these Checkbox Widgets.
The GetProperties Service will be called automatically when the Mashup loads, so the Checkboxes states will be accurate on initial viewing.
However, the backend data state changes, you will need the GetProperties Service to be automatically called again to update the Checkbox Widgets.
Fortunately, it is simple to trigger this behavior.
You also want to enable bi-directional communication, not only displaying the current value of the PLC, but also setting it via the Mashup GUI.
The SetProperties Mashup Data Service can accomplish this.
Your Mashup is now complete with two Checkbox Widgets and connections from those Widgets to the backend data.
The left Checkbox represents Coil2, and will change its state depending on whether you have touched the lead to the appropriate input on the PLC.
The right Checkbox represents Coil3, and will display the current status as well as allow you to set the status of Output Coil 3 via checking or unchecking the box.
At the top, click View Mashup to display your web application.
If the connection to the PLC stops working and there is a Thumbs Down icon next to your properties, the ThingWorx Kepware Server trial edition drivers are not connected to your PLC.
NOTE: A changed PLC IP Address (typically seen through Connected Components Workbench) will require an IP Address change in ThingWorx Kepware Server settings.
Congratulations! You've successfully completed the Visualize an Allen-Bradley PLC guide.
In addition, assuming you have been utilizing this guide as part of the Rockwell Automation Learning Path, this represents the end of your journey.
You've learned how to:
This is the last guide in the Using an Allen-Bradley PLC with ThingWorx learning path.
For additional information on ThingWorx Kepware Server: