beckhoff TX1000 — 3.2 Sample Machine with Microsoft Silverlight and JavaScript

Samples Silverlight In the upper left you see the two outputs that are also output to the Bus Terminals. The bottom left shows the variable for counting the workpieces. The cycle speed of the motor can be changed via the Speed field on the right. The Steps display shows the number of cycles that are output on output 1. 3. Add XMLHTTP.JS In Visual Studio via 'Project → Add Existing Item...' add the file 'XMLHTTP.JS'. This file contains general methods for reading and writing PLC variables, as well as for converting data types. 4. Editing the source code Open the Default.html file in Visual Studio and include the 'XMLHTTP.JS' file in the header.

In the HTML page, add a JavaScript area in the HEAD section. The following source code must be inserted there: First, the most important variables must be declared. //enter URL to webservice here:var url = "http://localhost/ TcAdsWebService/TcAdsWebService.dll"; //enter netId here:var netId = "172.16.2.63.1.1"; //enter the port here:var port = 811; //send soap request every x seconds:var refresh = 1000; var inuse = false;var b64s, success, errors, req; TX1000 24 Version: 1.2