|
|
This example assumes ThingWorx 8.0 or later is installed and running.
|
|
|
In this example, the Thing is named ThingWorxKepwareServer.
|
















|
|
Unencrypted communication is a security risk and should ONLY be enabled during small-scale testing, or if the environment is well secured by other means at the perimeter.
|
|
|
The Thing Name must match the name of the IndustrialGateway Thing name is case sensitive.
|

|
|
During an evaluation, it may be helpful to use the Simulator Driver with ThingWorx Kepware Server for sample data and tags. See the Simulator Driver manual.
|
|
|
Industrial Connections does not display if none are connected. If ThingWorx Kepware Server is installed but not connected, click Start Runtime Service from the ThingWorx Kepware Server icon on the desktop toolbar.
|





|
|
A Remote Template type must be selected.
|


|
|
Upon saving, the IndustrialThingShape is implemented by the Thing and it cannot be removed from the Thing. Saving any Thing whose Base Thing Template is derived from a Remote Thing with the implemented IndustrialThingShape will only allow remote bindings to be tag address-based.
|
|
|
• ThingWorx does not support property inheritance on IndustrialThingShapes.
• Once a property is overridden on a Thing, any changes made on the Thing Shapes around property bindings will not be reflected. This is limited to aspects around binding. If the property base type is changed for an instance, that change will be propagated.
• The overridden property on the Thing must be deleted (essentially undo the override), and any binding-related changes made on the Thing Shape will be reflected on the Thing.
|
|
|
Infotable-type properties must have the Push Type set to Always pushed.
|
|
|
The following properties are specific to the Industrial Connections Thing:
• Tag Address: The address of the tag, as it exists in ThingWorx Kepware Server. The property name and the bound tag address do not need to be the same.
• Industrial Data Type: The data type, as it exists in ThingWorx Kepware Server. This corresponds to the base type in ThingWorx.
• Push Type: The default push type is Pushed based on value change. While the Pushed based on deadband is similar to Pushed based on value change, there is a subtle difference in the values that are pushed. For example, if the values from the device are 1,2,3, and 4 and the push type is Pushed based on value change with a Push Threshold of 2, then the value that will be pushed up from the edge is 1. However, that value does not get pushed up again because it has only changed by 1. If the push type is set to Pushed based on deadband in this same example, it will push the values of 1 and 4 because the change is between the last value that was pushed instead of the last value from the edge.
|




|
|
Alternately, choose the Dynamic tag option, enter a dynamic tag address, and select the Industrial Data Type before clicking Done.
|

|
|
All count properties are logged to a value stream.
|
|
|
This value should not be used to verify connectivity as it may be this update that is dropped.
|
|
Service
|
Description
|
||
|---|---|---|---|
|
BrowseItems
|
The inputs are path and filter. Filter is optional.
Returns: The SourceType (for example, Word or Word Array) is the data type as defined in the ThingWorx Kepware Server and correlates to the base type in ThingWorx.
This service takes a filter as argument, allowing searches for specific tag names. The filter techniques that can be used in this filter field are:
* Wildcard - matches any set of characters.
? Single Char Wildcard - matches any single character.
[...] Inclusion character set - matches any single character included between brackets. Ranges of characters can be indicated by a dash: 'c-j'.
[!...] Exclusion character set - matches any single character not included between brackets. Ranges of characters can be indicated by a dash: 'c-j', '.
# Digit - matches any numeric character.
|
||
|
BrowseGroups
|
The inputs are path and filter. If a path is not defined, all groups are returned.
|
||
|
GetIndustrialThings
|
Returns all Things that are connected via the IndustrialGateway Thing Template. You can also view the Remote Things mashup in ThingWorx to view this information.
|
||
|
GetPropertySubscriptions
|
You can use this service (on the Remote Thing) to return aspects (properties as defined by the ThingWorx Kepware Server).
|
||
|
GetBoundItems
|
Input a number for maxItems. Returns all tags that are bound to the Thing that the service is run from.
|
||
|
GetPropertyDiagnostics
|
Available on the Remote Things that is added when using the IndustrialThingShape. This service takes the local name of a property currently bound to the Thing on which the service is run, and returns the following information:
• Description: The description field on ThingWorx Kepware Server.
• Valid — Boolean. Is the property valid on the ThingWorx Kepware Server?
• DriverFriendlyName: the name presented to users for the driver that is used to generate the tag.
• Model — The model of device under the driver that is used to generate the tag.
• Error — Boolean. Is the device in error?
• Name — The name of the address in ThingWorx Kepware Server.
• DriverPersistedName — The ThingWorx Kepware Server name of the driver used to generate the tag.
• Address: The physical address of the tag in ThingWorx Kepware Server.
• DataType — The industrial data type as ThingWorx Kepware Server sees it.
• ReadOnly — Boolean. If true, the tag is read-only.
• CurrentValue — The value of the tag when the service was executed.
• CurrentQuality — The quality of the tag when the service was executed.
• CurrentTimestamp — The time the tag was read when the service was executed.
|
||
|
GetDiagnosticDigest
|
Available on the Industrial Gateway Thing. This service takes in any tag address and returns the diagnostic information of that tag from ThingWorx Kepware Server. This is the only diagnostic service that can use either a static or dynamic address on the ThingWorx Kepware Server instance to provide information, meaning that the tag does not need to be bound to a property in the platform for this service to return results. The definition of each of the returned fields are the same as for the GetPropertyDiagnostics service (see above).
|
|
|
PTC support extensions are available on the ThingWorx Foundation downloads page..
|

|
|
Clicking the Import Format link displays the format of the file.
|

