Configure and control all runtime options.

Reference  Solution  RuntimeUI → Startup | Build and Publish | Execution Profiles | Monitor


Runtime Startup (Reference): Configure and control solution execution, specify execution profiles, and customize connection settings for all runtime scenarios.

Access: Runtime → Startup


Main Commands

Execution Controls

CommandFunctionStatus Indicators
Run StartupStarts the applicationButton changes to Stop
StopStops the applicationButton changes to Run
Online ConfigurationApply changes in real-timeMust be connected to runtime

Note: All changes must be saved before they appear in runtime when online configuration is enabled.


Execution Profiles

Select environment-specific configuration:

ProfilePurposeDefault Port
DevelopmentDebugging enabled, dev tools active3301
ValidationTesting environment3201
ProductionOptimized for production3101
CustomUser-defined settingsUser-defined

The Production profile uses main configuration without overrides. Other profiles apply configured replacements at startup.


Startup Port Settings

Configure network ports for application access:

SettingDescriptionDefault
Main PortPrimary access port per profileProfile-dependent
Auto PortsAuto-select if main unavailableDisabled
WA PortWindows Authentication portAs configured
Windows AuthenticationRequire Windows auth onlyUnchecked
SSL PortHTTPS web access3111
AutoStartup/Windows ServiceRun at system startupDisabled

AutoStartup Behavior

Windows Platform:

  • Configures as Windows Service
  • Starts without user login
  • Runs under system account

Multiplatform on Remote Devices:

  • Configures in TWebServicesRunPrograms.json
  • Starts with TWebServices
  • Enables remote management

SSL Certificate Configuration

When an SSL Port is configured, a TLS/SSL certificate is required to serve HTTPS connections on that port. Certificate settings are stored per port in TServer.json — changing the SSL Port number requires reconfiguring the certificate for the new port.

To open the certificate dialog: Click the button next to the SSL Port field.

SourceDescriptionAvailability
Certificate FileLoad a .pfx or .crt file from the file systemLocal and remote
Certificate StoreSelect a certificate by thumbprint from the Windows local machine storeLocal only

Certificate File mode: Browse for a .pfx or .crt file. For .pfx files, enter the certificate password. When connected to a remote server, the file is uploaded automatically to the Certificates\ subfolder in the server's machine settings directory.

Certificate Store mode: Enter the SHA-1 thumbprint of a certificate already installed in the Windows local machine store. This option is not available when connected to a remote server.

Validate Certificate: Checks the certificate and displays its subject, expiration date, and issuer. Only available when connected to a local server. Validation is required before saving.


Command-Line Service Management (TManageServices.exe)

Runtime services can also be installed and removed from the command line, without opening Designer. The TManageServices.exe utility (located in the product root folder) handles Windows Service install/uninstall for every runtime component and is the same utility invoked internally when you click AutoStartup in Designer.

This is the standard way to integrate with SCCM, Intune, PowerShell DSC, Ansible, Chef, or any unattended deployment pipeline.

TStartup (Runtime) Service

Install the runtime as a Windows Service for a given solution. The service name will be TStartup-<SolutionName>:

TManageServices.exe /installtstartup /solution:"C:\Solutions\Plant1.tproj" /silent

Uninstall the service by solution name:

TManageServices.exe /uninstalltstartup /solution:"Plant1" /silent

Any additional arguments passed on the command line (e.g. /profile:N, /username:..., /port1:..., /wa:true) are forwarded to the service executable at install time so they are applied every time the service starts.

Other Runtime Services

The same utility manages all other FrameworX Windows services:

CommandService
/installtwebservices / /uninstalltwebservicesTWebServices (web client host, REST, HTML5)
/installtsecuregateway / /uninstalltsecuregatewayTSecureGateway (multi-site routing)
/installtmqttbroker / /uninstalltmqttbrokerTMQTTBroker (built-in MQTT broker)
/installthardkey / /uninstallthardkeyTHardkey (license hardkey)
/installruntimemcphttp / /uninstallruntimemcphttpRuntimeMCPHttp (AI integration, .NET 10)
/removeallservicesUninstall all FrameworX services in one call

Unattended Mode

Pass /silent to prevent the utility from pausing on error. When /silent is set (or when stdin is redirected, as in any scripted pipeline), TManageServices.exe returns cleanly with an exit code instead of waiting for a keypress.

Exit codes:

  • 0 — Success
  • N — Number of failed operations

Help

Run the utility without arguments, or with /? / /help, to print the full command reference:

TManageServices.exe /?

Requirements

  • Must be run from an elevated (Administrator) shell — service registration requires elevation
  • Supported on Windows only
  • On Linux/Docker, run the runtime via systemd instead (see the Linux/Docker Startup section of Runtime Installation Reference)

For end-to-end IT deployment patterns, see IT Deployment RunBook.


Execution Environment

Execution Path Settings

OptionDescriptionUse Case
Direct File AccessLocal file accessSingle-user development
Solution ServerTWebServices connectionMulti-user collaboration
Path/Use Solution PathOverride default pathRedundancy configuration

DataHub Service

SettingFunction
Publish to DataHubShare objects with remote DataHub
DataHub SettingsConfigure connection parameters

DataHub Settings:

  • Alias: Solution identifier
  • Primary/Secondary Host: Server addresses
  • Port: TCP communication (default: 30001)
  • AccessKey: Authentication

Built-in Broker Settings

SettingFunction
Publish to MQTT BrokerMake UNS visible to MQTT clients
TMQTT Broker SettingsConfigure security and options

Startup Modules

Select modules to activate at startup:

ModuleFunctionImpact
DevicesEnable device communicationRequired for field data
AlarmsEnable alarm processingRequired for notifications
HistorianEnable data loggingRequired for trending
DatasetsEnable database accessRequired for queries
ReportsEnable report generationRequired for documents
ScriptsEnable script executionRequired for logic
DisplaysLaunch WPF client locallyOpens TRichClient
OpenBrowserLaunch web clientOpens default browser
OPC ServerEnable OPC DA/UA serverExternal access

Redundancy Settings

Configure high-availability environment:

SettingDescriptionFormat
Primary Server IP/PortMain server addressIP:Port
Secondary Server IP/PortBackup server addressIP:Port
TimeoutSwitchover delaySeconds
On Primary StartupRecovery behaviorSwitch/Keep
ReplicationData to replicateAlarm/Tag Historian

Recovery Options

  • Switch back to primary: Auto-return when available
  • Keep secondary active: Manual switchback required

Command Lines and URLs

Startup Command Line

TStartup.exe /solution:"path\solution.dbsln" /profile:1 /OnlineConfig:true /port1:3301

Parameters:

  • /solution: - Solution file path
  • /profile: - 1=Dev, 2=Val, 3=Custom
  • /OnlineConfig: - Enable online changes
  • /wa - Windows Authentication
  • /port1: - Override port

Client Access

ClientCommand/URLOptions
Rich ClientTRichClient.exe /port1:3101NoSplash, ViewOnly
Smart Clienthttp://IP:Port/smartclientSSL available
HTML5 Clienthttp://IP:Port/html5SSL available

Network Access Example

Accessing HTML5 from Other Devices:

  • Server IP: 192.168.0.8
  • Port: 3201
  • URL: http://192.168.0.8:3201/html5

Direct Monitor Access:

http://ServerIP:Port/html5/?Monitor=Runtime

Startup Procedure

Step-by-Step Process

  1. Launching TStartup.exe
    • Loads the Solution
    • Reads Solution Configuration
    • Parses Command Line Parameters
    • Activates Main Process TServer.exe
  2. Starting Real-Time Database
    • TServer.exe loads objects into memory
    • Establishes communication service
  3. Modules Startup
    • Each module reads configuration
    • Establishes connection with main process
  4. Applying Execution Profiles
    • Development: Local SQLite database
    • Production: SQL server connection
  5. Designer Connection
    • Automatic connection for monitoring
  6. Client Display Access
    • Remote computers can connect
  7. Online Changes
    • Apply without runtime disruption

Platform-Specific Features

Windows-Only Features:

  • Windows Authentication
  • Windows Service configuration
  • OPC Classic support
  • Specific security features


Runtime Startup Page when All Features are enabled


Runtime Startup Page, when Basic Modules Filter is Selected


In this section...