18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

• You can use tags or expressions as arguments of this function. Therefore, you can use this<br />

function to configure the web settings automatically during runtime, according to the network<br />

settings of each project (IP address, Web Server URL, and so forth).<br />

• Only the first parameter of this function (strServerIP) is mandatory. All other parameters are<br />

optional. The parameters that are not configured in the function assume the default value<br />

configured in the Web tab of Project Settings.<br />

• The following parameters should be omitted unless you intend to use the Web Tunneling<br />

Gateway: optNumProtocolFlag, optNumGtwPort, optStrGtwIP, optStrSecondaryGtwIP, and<br />

optStrISSymbolURL.<br />

Returned value<br />

Error<br />

Description<br />

0 No error<br />

1 Invalid number of parameters<br />

2 Invalid Server IP address 1<br />

3 Invalid URL<br />

4 Invalid optional path<br />

5 No Web pages found<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag SetWebConfig( "192.168.1.28" )<br />

Tag SetWebConfig( "192.168.1.28", "http://192.168.1.28/" )<br />

Tag SetWebConfig( GetComputerIP(), "http://" + GetComputerIP() + "/" )<br />

Tag<br />

Tag<br />

Tag<br />

SNMPGet<br />

SetWebConfig( "192.168.1.28", "http://192.168.1.28/", "C:\MyWebPages<br />

\" )<br />

SetWebConfig( "192.168.1.28", "http://192.168.1.28/", "C:\MyWebPages<br />

\", 1234 )<br />

SetWebConfig( "192.168.1.28", "http://200.0.0.10/", "C:\MyWebPages<br />

\", 1234, "192.168.1.29", 0, 80, "200.0.0.1", "200.0.0.10",<br />

"http://200.0.0.10/MyISSymbol/" )<br />

Gets information from computers or network devices through the SNMP protocol.<br />

Function Group Execution Windows Embedded Thin Client<br />

SNMPGet System Info Synchronous Supported Not supported Supported<br />

Syntax<br />

SNMPGet( strAddress, strCommunity, strOID, "strTagName" )<br />

strAddress<br />

The address of the machine/computer (e.g., "127.0.0.1" or "localhost" ).<br />

strCommunity<br />

SNMP community name when communicating with the computer (e.g., "public" ).<br />

Page 682<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!