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

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

How Can I bind Kepware properties with Remote Thing with Java Script code

JK_10565232
12-Amethyst

How Can I bind Kepware properties with Remote Thing with Java Script code

Hi All,

 

I've created an Industrial Thing with a Kepware connection. I want to create an application where adding and binding properties will be done from code without using Composer.

I tried to connect the ready properties with remote bind using the service SetRemotePropertyBinding

JK_10565232_0-1762511972802.pngWithout success.

I tried to create a new property using AddPropertyDefinition and it also didn't work.

JK_10565232_1-1762512172462.png

 

my aspcect json looks like that :

{
 
"industrialDataType": "String",
 
"tagAddress": "DB2000.STRING0.20",
 
"scanRate": 1000,
 
"tagType": "Static",
 
"readOnly": "true"
 
}

Where I did something wrong?




5 REPLIES 5

I tried following.. It's working fine.

The Kepware tag path is "Channel1.Device1.Tag1"

  1. Created Thing Property called "TEST" as STRING base type.
  2. Executed "SetRemotePropertyBinding()" service and passed following parameters.
    {
      "propertyName": "TEST",
      "sourcePropertyName": "Channel1.Device1.Tag1",
      "timeout": "0",
      "pushType": "VALUE",
      "pushThreshold": "0",
      "aspects": {
        "industrialDataType": "Word",
        "tagAddress": "Channel1.Device1.Tag1",
        "scanRate": 1000,
        "tagType": "Static",
        "startType": "readEdgeValue",
        "source": "",
        "dataShape": ""
      }
    }​
    Sathishkumar_C_0-1762779478479.png

     

Hello Sathishkumar_C

Thank you for your answer. What kind of TW version are you using? 

I tried it in 10.0.1

I have TWX 9.3 and its not working still. Maybe I should change something in platform settings json? 

I tried the same with TWX 10.0.1 and its not working too. I did something wrong before. Did you set up your properties TEST like remote properties before you executed Set Property Binding Service?

Announcements


Top Tags