Server Launch

<< Click to Display Table of Contents >>

Navigation:  Modbus Universal MasterOPC Server > MasterOPC Universal Modbus Server >

Server Launch

Server Launch

mbul_mail Server Auto-Launch at Client Connection

To launch the server, click the shortcut MasterOPC Universal Modbus Server\MasterOPC Universal Modbus Server (the group MasterOPC Universal Modbus Server is situated in that folder of the Start menu that is chosen during the product installation).

Upon this command, the server is launched in the design-time mode (see Operation Modes ), and a graphic shell of the server is displayed.

The graphic shell is a window; a title bar of that window is provided with the following standard window tools:

modbus_img2 – minimize the window

modbus_img3 – restore the window

modbus_img4 – close the window (this command stops and unloads the server)

Server Auto-Launch at Client Connection

If the server is not launched (and is not registered as a service), and the first client is connecting to it, then the server is automatically launched in the run-time mode. At that, the server executes a start configuration (defined in the file ..\SERVERCFG\__startconfigv3__).

Work folders of the server are stored in the profile of all users; that is, in a folder of the kind C:\Documents and Settings\All Users\Application Data\InSAT\MasterOPC Universal Modbus Server\ (in Windows 7, in a folder of the kind C:\ProgramData\InSAT\MasterOPC Universal Modbus Server\SERVERCFG\; see also description of GLOBALPROGRAMDATAFOLDER in the section Constants ).

At that, the server window is minimized, and its icon modbus_img5 is displayed in the taskbar notification area:

modbus_img6

To open the server window to execute the command Show from the icon context menu. Such an opening can be disabled by Open window from tray = False (see The Dialog of Server Parameters ).

If the server is launched by a client, it is automatically stopped and unloaded when the last client is disconnected.

If the server is registered as a service, the service is switched to the operation mode (a start configuration is executed) when the first client is connecting to. At that, a graphic shell of the server is not loaded, and the server icon is not displayed in the tray.