This section describes the steps to setup and run multiple instances of CNCnetPDM on a single PC.
In case you would like or have to work with different parameters for specific devices or groups of them you can use instances of the program or background service to do so. An instance basically is an own working environment for CNCnetPDM, you can run multiple instances of CNCnetPDM at one PC at the same time. To set up an instance for CNCnetPDM proceed as follows:
Stop CNCnetPDM if it's running. In the main dialog of CNCnetPDM click on the button (1) right of ‘Instance’ in section ‘Service’, a new dialog opens. Enter the name of the instance of the program (2), do not use whitespace characters. Doing so would cut off the instance name after the first whitespace character.
FIG 1: Setup of a CNCnetPDM program or service instance
Clicking on button Ok closes the secondary dialog, the name of the instance is shown right of ‘Instance’ in section ‘Service’. If you now click on ‘Start Thread’ or ‘Install’ the following happens:
CNCnetPDM copies configuration file CNCnetPDM.ini to CNCnetFANUCNORTH.ini and if you use CNCnetPDM as a program starts instance FANUCNORTH. In addition shortcut ‘CNCnetPDM FANUCNORTH’ is created that enables you to use the instance without entering the name again.
You can configure all parameters of the instance by editing the respective configuration file of the instance, in this example CNCnetPDMFANUCNORTH.ini. After editing the file and stopping and starting the program or service again the altered parameters are used by the instance.
An instance of CNCnetPDM installed as background service shows up as service CNCnetPDM.INSTANCENAME (e.g. CNCnetPDM.FANUCNORTH) in the service control manager = (Run… + services.msc)
Note: Please do NOT run CNCnetPDM as a foreground program and/or instance and non-instantiated service with the same .ini file content at the same as this leads to unpredictable results.
Information about the instance can also be found in file log_master_YYMMDD.txt in the log directory of CNCnetPDM.
To uninstall an instance when using CNCnetPDM as a program simply stop the program and delete the additional .ini file and the shortcut. In case you run an instance of CNCnetPDM as a service first click on ‘Uninstall’ in section ‘Service’ of the main dialog before removing the additional .ini file and shortcut.