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)?
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