omron — SetWebConfig

Appendix: Built-in Scripting Language Examples Caution: This register can affect the Windows system configuration. You should be extremely careful and edit the registry only when you are certain about the configuration. SetWebConfig Configures the Web settings for the current project. The settings configured in the function are updated on the HTML files of the project. Syntax SetWebConfig( strServerIP , optStrBackupURL , optStrPathFile , optNumHostPort , optStrSecondarySer ) strServerIP Data Server IP Address. IP address (or hostname) of the computer where the TCP Server module of IWS is running. optStrBackupURL Optional alternative URL for the project's Web pages.

The Thin Client will look for the Web pages in this URL if it does not find them in the same URL written in the Address field of the Web browser. optStrPathFile Optional file path and name of the HTML file to be updated. If you specify only the file path without a file name, then all of the HTML files in the specified file path will be updated. Note: You can specify an individual file (e.g., you only want to update one file. This is especially useful for projects running on Windows Embedded target systems. optNumHostPort Optional TCP Port number that the Thin Client must use to exchange data with the TCP Server module of IWS.

optStrSecondaryServerIP Optional alternative data server IP address. The Thin Client will attempt to connect to the TCP Server module of IWS in this IP Address if it is not able to connect to the TCP Server module running in the IP Address specified in the strServerIP parameter. optNumProtocolFlag Optional When you use the Web Tunneling Gateway option, this parameter specifies whether the Thin Client will use either HTTP to exchange data with the Web Server or HTTPS (SSL – Secure Socket Layer). If this flag has the value 0, the Thin Client will use HTTP. If this flag has the value 1, the Thin Client will use HTTPS (SSL).

optNumGtwPort Optional TCP Port number that the Thin Client must use to exchange data with the Web Server when using the Web Tunneling Gateway. optStrGtwIP InduSoft Web Studio Page 567 Tag Name Expression Tag SetRegValue( 0, "HARDWARE\DEVICEMAP\SERIALCOMM", "\Device\Serial1", 1, "COM3" ) // Returned value = 0 if successful Tag SetRegValue( 2, "Control Panel\Desktop", "Smooth Scroll", 0, 1 ) // Returned value = 0 if successful Function Group Execution Windows Embedded Thin Client SetWebConfig System Info Synchronous Supported Supported Executed on Server