I want use JSON/XML Driver in VTScada A to read a tag from VTScada B.
The VTScada B has configured the corresponding parts. So I can get tag1 data in browser with URL "http://192.168.1.2:8080/web/REST/SQLQuery?query=select timestamp,'MyTest\Machine1\CommDriver\Tag1:value' from history ORDER BY Timestamp DESC limit 5" from VTScada B.
The data is as below:
{"results":{"fieldNames":["timestamp","MyTest\Machine1\CommDriver\Tag1:value"],"fieldTypeNames":["TIMESTAMP","DOUBLE"],"values":[[1635834093.209,22512],[1635834092.201,22510],[1635834091.194,22509],[1635834090.209,22507],[1635834089.2,22506]]},"returnCode":0,"errorMessage":null,"nextPageToken":null,"paginationStats":{"numRetrieved":5,"numResults":5,"timestampRetrieved":1635834089.2}}
Now I want use the JSON/XML Driver in VTScada A to read the tag1 data. My config is as below:
But I can`t get the data. What is wrong? Maybe do I need a new "Processor"? Whould you like to give me a sample with my data structure?
Thank you.
I want use JSON/XML Driver in VTScada A to read a tag from VTScada B.
The VTScada B has configured the corresponding parts. So I can get tag1 data in browser with URL "http://192.168.1.2:8080/web/REST/SQLQuery?query=select timestamp,'MyTest\Machine1\CommDriver\Tag1:value' from history ORDER BY Timestamp DESC limit 5" from VTScada B.
![6180d8d58e67d](serve/attachment&path=6180d8d58e67d)
The data is as below:
{"results":{"fieldNames":["timestamp","MyTest\\Machine1\\CommDriver\\Tag1:value"],"fieldTypeNames":["TIMESTAMP","DOUBLE"],"values":[[1635834093.209,22512],[1635834092.201,22510],[1635834091.194,22509],[1635834090.209,22507],[1635834089.2,22506]]},"returnCode":0,"errorMessage":null,"nextPageToken":null,"paginationStats":{"numRetrieved":5,"numResults":5,"timestampRetrieved":1635834089.2}}
Now I want use the JSON/XML Driver in VTScada A to read the tag1 data. My config is as below:
![6180d3545ed74](serve/attachment&path=6180d3545ed74)
![6180d9a29776d](serve/attachment&path=6180d9a29776d)
But I can`t get the data. What is wrong? Maybe do I need a new "Processor"? Whould you like to give me a sample with my data structure?
Thank you.
edited Nov 2 '21 at 6:31 am