WinCC OA JavaScript Integration Google-Maps and Charts Example...


An example how seamless WinCC OA is able to communicate with the Browser-Widget and JavaScript.

https://www.youtube.com/watch?v=FZemswLh7s4

https://www.youtube.com/watch?v=lecMy6sZsU4

CTRL-Example:

main()
{
  pushScript("document.getElementById('mytext').value = '"+TEXT_FIELD1.text+"';");  
}

 

JavaScript-Example:

function doQueryConnect() {
        oa.dpConnectQuery("SELECT '_original.._value', '_original.._stime' FROM 'PerfTest_1.Float'", false, function (data) {
            MyGauge.setValue(0, data["table"][1][1]);
            MyChart.drawChart(data["table"][1][2], data["table"][1][1]);
        });
        oa.dpConnectQuery("SELECT '_original.._value' FROM 'Test_1.Float'", true, function (data) {
            MyGauge.setValue(1, data["table"][1][1]);
        });
    }

Last update:
2015-02-28 18:17
Author:
Andreas Vogler
Revision:
1.0
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.