Runtime Control

The Service must be in Runtime mode in order to process values for trending, alarming, data logging, recipe execution, report generation, data transfer, and communications.  You can Start and Stop Runtime from any of the Service configuration windows.

To Start Runtime select the Start Runtime Button in any Service modification window of the OAS Configuration application or from the OAS Service Control application.

Start Runtime

To Stop Runtime select the Stop Runtime Button in any Service modification window of the OAS Configuration application or from the OAS Service Control application.

Stop Runtime

You can make add, delete or make modifications to all configurations while the Service is in Runtime mode. Tag configurations files can only be loaded when not in Runtime, but Tag configuration files can be saved during Runtime.  All other modifications can be done while in Runtime if desired.

Make certain to save the modifications if you desire the changes to be retentive for the next time the Service is started.

Save Button

Selecting Live Data Cloud Service

If one or more Live Data Cloud services are subscribed to the service you are connecting to the Live Data Cloud list will populate with all of the remote Live Data Cloud services that are available to connect to. Use the Select button to the right of the Live Data Cloud list to connect to the Live Data Cloud service for remote configuration.

See Live Data Cloud for more information on how to setup Remote SCADA Hosting to host a remote data source through a standard Internet connection.

Selecting Service

When accessing any of the configurations you will select the desired network node to modify.  Enter the IP Address, Network Node Name, or Registered Domain Name in the Network Node field and click the Select.  This allows you to modify configurations on remote systems.

Use the pull down to select previously selected services.

If other Liver Data Cloud services are hosted through Network Node the Live Data Cloud list will populate in the Live Data Cloud pull-down.

If the Service is not running on the system or the TCP Port is blocked you will see a warning dialog to start the service.

The status of the service will appear at the top along with configuration buttons to load, save, and modify a configuration.

FAQs – Windows Services

When do I need to use the OPC Data Fix?
Only when the OPC Server(s) you are connecting to do not run as a Windows Service and cannot be accessed from the SYSTEM account due to DCOM security.
What account are the OAS Services run under?
By default the SYSTEM account, but you can change the Service LogOn using the Service Control Manager.

Remoting Security

The OAS Service communicates with other OAS Services and local and remote .NET applications, Excel Workbooks, and OPCSystems.NET OPC Servers over TCP port.  The default TCP port number that Open Automation Software uses is 58727. If you have a firewall simply add this port number in the exceptions list. The TCP port is adjustable using the Configure OAS application under Configure-Options as the TCP Port Number. You can also set the TCPPortNumber property in all .NET controls, Excel Workbooks, and OPCSystems.NET OPC Server.

To add a port to the exceptions list select Control Panel-Windows Firewall, then the Exceptions Tab. Use the Add Port button to add the TCP Port 58727 for both inbound and outbound traffic.

For remote connections you can either use a Network Node name, IP Address, or registered Internet domain name of the remote nodes.

Communications to web applications for Web HMI, Web Trend, Web Alarm, and REST API are performed by default through TCP Port 58725.  This can be changed under Configure-Options-Networking.

Service Control

Service Control Manager

To Start and Stop the 4 OAS Services you can use either the Service Control Manager built into the Windows Operating System or the OAS Service Control application.

If deployed to Linux view how to Setup OAS Engine as a Linux Service or Daemon.

Using the OAS Service Control application

To run the OAS Service Control application select Start-All ProgramsOpen Automation Software-OAS Service.

Select the desired feature of the Service Control application:

  • Refresh Status:  Refreshes the Service Status and License Status.
  • Start Service: Starts the Service.
  • Stop Service: Stops the Service.
  • Start Runtime: Starts Runtime of Open Automation Software if the Service is running.
    Use the OAS Configuration to have the Service start automatically in Runtime.
  • Stop Runtime: Stops Runtime of Open Automation Software if the Service is running.
  • Configure OAS: Launches the Open Automation Software Configuration application.
  • Hide: Hides the application and leaves it running with the system tray icon available.
  • Exit: Exits the application.

Using the Windows built-in  Service Control Manager

Alternatively you can use the Service Control Manager built into the operating system. To start the Service Control Manager you must first have Administrative rights to the system.

For Windows 2000, XP, Server 2003, and Server 2008: Select Start-Control Panel-Administrative Tools-Services to view all Services installed on the system.

For Vista: Select Start-Control Panel-System Maintenance-Administrative Tools-Services to view all Services installed on the system.

For Windows 7, 8, and 10: Select Start-Control Panel-System and Security-Administrative Tools-Services to view all Services installed on the system.

Select OAS Engine, OAS Framework 461, OAS OPC, and OAS Reports and select Start or Stop.  Using Properties of the Service you can also set the Startup Type as Manual, Disabled, or Automatic (Delayed Start).  Automatic (Delayed Start) is the default after installation so the Service will start with the Operating System.

 

Service Logon

There are 3 scenarios that would require setting the service LogOn to one of the OAS Services running on Windows.  The following information is not applicable for Linux.

Connecting to classic DCOM OPC Servers that run under the desktop account
The OPC Client connection to third party OPC Servers runs in a Windows Service called OAS OPC (previously called OPC Systems Data). By default this Windows Service runs under the System account.

If you are receiving bad data quality from a classic OPC Server it is most likely due to a security logon restriction in the operating system. Some OPC Servers cannot run as a Windows Service, so you may need to either use the OPC Data Fix or set the OAS OPC Service to run under the desktop user account with the service LogOn so that the operating system DCOM security allows the connection. Using the OPC Data Fix is preferred in case the user account login is changed in the domain for the server.

If the OPC Server is running as a Service you can often leave the Service Log On to the Local System account, but check the box for “allow service to interact with desktop” if DCOM security is restricting the connection.

Refer to the Troubleshoot OPC Communications section in this Knowledge Base to resolve all OPC connection issues.

Data Logging or Recipe access to MS Access on a remote network drive
If you cannot assign the SYSTEM account to have access to the remote drive set the OAS Reports service LogOn (previously called OPC Systems Database).

Data Logging to CSV or SQLite file on a remote network drive
If you cannot assign the SYSTEM account to have access to the remote drive set the OAS Engine service LogOn (previously called OPC Systems).

Network Path – Best Resolution
Another common solution is to use the full network path instead of a mapped drive.  Mapped drives are usually defined to a user while a network drive starting with \\ will work without a user depending on the domain and security.

Service Control Manager

The following guide shows you how to use the built in Service Control Manager of the operating system to set a Windows Service LogOn.
If you just need to start and stop the OAS Services you can use the OAS Service manager from the program group Open Automation Software.

There are 4 scenarios to for OAS to set a service LogOn for 1 or more of the OAS services. Following is list of Service Names and the reason of changing the LogOn from the SYSTEM account.

  • OAS OPC – Connecting to classic DCOM OPC Servers that run under the desktop account
  • OAS Reports – Logging to MS Access on a remote network drive
  • OAS Reports – Default printer is not set for the operating system for automated reports
  • OAS Engine – Logging to a CSV or SQLite file on a remote network drive

Network Path – Best Resolution
The best resolution to logging to MS Access, SQLite, or CSV files on a remote server is to use the full network path instead of a mapped drive.  Mapped drives are usually defined to a user while a network drive starting with \\ will work without a user depending on the domain and security.

Previous service names

  • OAS OPC – (previously OPC Systems Data)
  • OAS Reports – (previously OPC Systems Database)
  • OAS Engine – (previously OPC Systems)

To start the Service Control Manager you must first have Administrative rights to the system.

Select Start-Control Panel-Administrative Tools-Services to view all Services installed on the system or type Services from the Search field of the start menu.

Setting the Service LogOn:

Select desired OAS service and right click to select Properties:

Select the Log On Tab to view the current Logon Account. 

Select This account radio button and use the Browse button to Select User:

Use the Advanced button in the lower left:

Service Control Manager 7

Then the Find Now button to select the desired Logon User Account:

Service Control Manager 8

Select OK twice to return to the Log On Tab dialog.

Enter the Password for the User Account and select OK:

If the Service is already started it must be Stopped and Started for the changes to take effect.

OAS Service

If deployed to Linux view how to Setup OAS Engine as a Linux Service or Daemon.

The OAS Service Control Manager for Windows lets you manage:

  • Starting and stopping the OAS Services
  • Start and stop runtime mode of OAS
  • Launch Configure OAS application
  • Enable OPC Data Fix for connecting to classic OPC Servers that will not run under the SYSTEM account

Alternatively, you can use the built in Windows Service Control Manager to stop and stop the OAS Services and also set each service LogOn to a specific account.

Service Control Manager

OAS Service Control Manager