Examples set: 0"> actual: 100 Unpack sample program https://infosys.beckhoff.com/content/1033/ tcscriptdll/Resources/12459711755/.zip, 'Active Server Pages'. 4.4 Active Server Pages for Windows CE This sample is a special form of Sample 3 [ } 36] . Therefore, please first familiarize yourself with the methodology described in Sample 3 [ } 36] . Windows CE can serve as a web server for ASP pages (by copying the appropriate files into the "WWW" directory). However, the functionality of this is limited, which manifests itself in the fact that on Windows CE the " global.asa " file cannot be processed.
Thus, among other things, it is not possible to create global variables and objects; they must be created anew for each page call by instantiating them directly in the script (as shown below). default.asp:
TcClient = new ActiveXObject("TcScript.TcScriptSync"); TcClient.ConnectTo("", 801); var nIntSet = 0; var nIntActual = 0; var sSet = Request.QueryString("set"); if ((sSet != null) && (sSet.length != 0)) { var bSetIsNumber = true; for (var i = 0; ((i { var sChar = sSet.charAt(i); if (ValidChars.indexOf("0123456789.") == -1) { bSetIsNumber = false; } } if (bSetIsNumber == true) { nIntSet = parseInt(sSet); if(nIntSet >= 0) { TcClient.WriteVar(".PLCVarInt", nIntSet); } } } nIntActual = TcClient.ReadVar(".PLCVarInt"); %> TwinCAT ADS-Script-DLL - Sample 04 - Windows CE TwinCAT ADS-Script-DLL - Sample 04 - Active Server Pages for Windows CE set: "> TX1000 38 Version: 1.0