omron — ExitWindows

Appendix: Built-in Scripting Language EndTask Stops the IWS module that is currently running. Syntax EndTask( strTask ) strTask The name of the task to stop (must be one of the following): Returned value No returned values. Examples ExitWindows Exits the Windows operating system in a specified manner. Syntax ExitWindows( numExitCode ) numExitCode A numeric code specifying how Windows should be exited:

InduSoft Web Studio Page 505 Function Group Execution Windows Embedded Thin Client EndTask Module Activity Asynchronous Supported Supported Executed on Server BGTASK Background Tasks VIEWER Viewer DBSPY Database Spy LOGWIN LogWin DRIVERDriverName Driver UNIDDECL DDE client UNINDDE DDE server UNIODBC ODBC TCPSERVER TCP/IP Server TCPCLIENT TCP/IP Client OPCCLIENT OPC Tag Name Expression EndTask( "Viewer" ) Note: To close a driver, you must use the following syntax: EndTask( "DriverDriverName" ) Where DriverName is the name of the driver's .dll file. For example:

EndTask( "DriverMODBU" ) Function Group Execution Windows Embedded Thin Client ExitWindows Module Activity Asynchronous Supported Not supported Supported Value Description 0 Restart 1 Log off