cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How do I get the point source of a property binding in a thing

ST_10465152
3-Newcomer

How do I get the point source of a property binding in a thing

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

ST_10465152_0-1731898419710.png

 

6 REPLIES 6
Velkumar
19-Tanzanite
(To:ST_10465152)

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.

ST_10465152_1-1731907607262.png

ST_10465152_2-1731907624858.png

 

 

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

 

Announcements


Top Tags