Page Tree
Other Releases
FactoryStudio projects can run several different ways: In Factory Studio, users are able to run the projects on multiple ways, they are: Easy Heading Macro headingIndent 40 navigationTitle On this page selector h2,h3 wrapNavigationText true navigationExpandOption disable-expand-collapse
Page Tree | ||
---|---|---|
|
You can run the project in any of the following ways:
To define a project so it automatically starts, use the configuration interface available in the project management tools that are located on define an automated startup of the product, it is to use the configuration interface available on the Project Management tools, at the Server tab.
We recommend that you manually start manually your project during project development or and installation , where because an operator is needed during the startup process. When your these stages. Automated startup is more suitable when the project is setup for production, automated startup is more suitable.
The startup shortcut, a You should use the login option, the startup shortcut, should be used when testing the a project , or in scenarios where the application will when the project has to always run in the same Windows user profile.
Use the The Windows Service can be used on production servers when you that need different Windows users user to login to the computer , while keeping and keep the server side runtime components running at all times.
In order to be fully OPC compliant, we We also support OPC client activation, in order to be in full OPC compliance, but we don't recommend its use, because, as a good practice principle, . However, we do not recommend using it because it is not desirable to allow the status of a remote client connections 's connection status to control whether a or not the server side application is running.
The following sections will describe what those automated settings are doing in case, for some reason, you need to setup those startup settings without using the configuration toolsdescribe what happens when a project is automatically started.
Using a Shortcut on Windows Startup
You can configure a Windows server to automatically start a project by using a startup shortcut. The startup shortcut starts the application when a user logs in to Windows, and the application stops running when the user logs off of Windows.
This procedure is automatically executed by the system when the startup mode is selected, as described above. This section will explain how to manually setup those these shortcuts.
The Project runtime startup is executed by the program program, TStartup.exe.
When using this example, make sure to change the installation path path in the script and the FactoryStudio version of FactoryStudio to the installation on your computer.
The project is started from a command line window. The following command line parameters are available:
No Format |
---|
/project: Project Path and Name between double quotes /username: (optional), username that will be used to start the server , if you do not specify, the user guest will be used. /redundancy: indicates that the server redundancy is being used (requires ip1 and ip2) /ip1: IP Address of the Primary FactoryStudio Server /port1: TCP port of the Primary FactoryStudio Server /ip2: IP Address of the Secondary FactoryStudio Server /port2: TCP port of the Secondary FactoryStudio Server /viewonly: indicates that the project is in view only mode /wa: indicates that the project uses Windows Authentication |
The modules that will be started are configured in the project , at and are located in Run > Startup.
Info | ||
---|---|---|
| ||
"C:\Program Files\Studio\fs-8.1\TStartup.exe" |
Creating the shortcut
Go to Start > All Programs, right. Right-click the Startup startup folder, and select Open.
In the examples below, be sure to change the installation path and version of FactoryStudio to the installation on your computer.
When you restart the computer next, the project will start automaticallyThe project will automatically start the next time the computer is started.
Using a Windows Service to Startup
You can configure a Windows server to automatically start a project when the computer starts using a Windows Service. The Windows Service starts the application as soon as the computer is powered on and the Windows Operating System starts, even if no user has logged in to Windows.
This procedure is automatically executed by the system when selected for startup mode, as described above. This section will explain how to set it up manually.
These methods do not start the client (user interface with the displays). To automate the client startup, see "Automatically Starting Windows Clients", below.
Use the Windows Service only on production servers that you are not using being used as engineering stations, and only if you need the ability to differentiate between the logged in Windows users logging in while the project is running.
The first several steps of the procedure procedures shown below are required to let you set up the Windows Service.
To run your application as a Windows Service:
Field | Description |
Primary Server IP and Target Port | Enter the IP address and port of the primary server. |
Secondary Server IP and Target Port | Enter the IP address and port of the secondary server, if any. |
On Primary Startup | Select the option you want. |
Historian Replication | Select how to handle historian replication. |
Connection Timeout | Connection timeout time, in seconds, to switch to secondary server. |
Server Command Line | Read-only field populated |
by the fields above. Click |
Copy to Clipboard to copy the command |
. | |
Rich Client command | The commands to start a Rich Client with the project's selected parameters. |
Smart Client url | The URL to access the Smart Client with the project's parameters. |
Web Client url | The URL to access the Web Client with the project's parameters. |
View-Only | If checked, apply View-Only parameter to Rich and Smart Client's url. |
Windows Authentication | If checked, apply Windows Authentication logon parameter to Rich and Smart Client's url. |
The whole command line should look something like this:
No Format |
---|
"C:\ProgramFiles(x86)\Tatsoft\FactoryStudio\fs-8.1\ tStartup.exe" /project:C:\Factory Studio Projects\ <project_name>.tproj /username:<username> |
No Format |
---|
installutil <InstallPath>\<fs-version>\TStartupAsService.exe Example: C:\Windows\Microsoft.NET\Framework\v2.0.50727>installutil C:\Program files\Tatsoft\FactoryStudio\fs-8.1\ TStartupAsService.exe |
No Format |
---|
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ TStartup\ImagePath" Example: "C:\\tatsoft\fs-8.1\TStartupAsService.exe" "/project:C:\FactoryStudio Projects\Project1.tproj" |