Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
I have an industrial thing where the Property is bound to the points in the kepserver. I want to get the address of the point bound to the current property when the point data changes.For example, how do I get the Source value on device1 (my.device.point1)?
Solved! Go to Solution.
The GetRemotePropetyBinding service has a propertyName parameter to specify the remote property name.
You can use this service to get point source.
Hi @ST_10465152
What do you mean by Source Value?
If you are looking for Kepware tag details (Register details ) you have to check it in KepServerEX only.
/VR
How to obtain the Source(my.device.point1) of property(device1) in service?
I can only find the value of the fetch property in thingworx, not the point name of the KepServerEX he is tied to
I can get Kepware tag details for all properties through GetPropertySubscriptions. How can I find Kepware tag details for the specified property.
Have you tried GetRemotePropertyBinding?
Just iterate over the results returned by that GetPropertySubscriptions, until you find the needed property, something like that:
// Assuming we are in a service called "GetPropertyDetails", which
// takes a STRING parameter "propertyName" and returns a STRING
let allProperties = me.GetPropertySubscriptions();
let result = '';
for (let i = 0; i < allProperties.rows.length; ++i) {
let row = allProperties.rows[i];
if (row.edgeName == propertyName) {
result = row.aspects.tagAddress;
break;
}
}
(apologies for typos, if any -- I didn't test it).
/ Constantine
The GetRemotePropetyBinding service has a propertyName parameter to specify the remote property name.
You can use this service to get point source.
Hello @ST_10465152,
It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Vivek N.
Community Moderation Team.