View Categories

SLM Cloud Gateway Interface (CGI) Guide

The SLM Cloud Gateway Interface (CGI) provides data integration between plant process data sources and Safety Lifecycle Manager (SLM). Operating as a background service, CGI collects process data, evaluates it against event conditions configured in SLM and sends qualifying events into SLM through the SLM API.

Its core workflow consists of three functions: poll data, process data and send data. This allows information originating from sources such as data historians, OPC servers, relational databases and files to be evaluated automatically for relevant process events.

This guide explains the role of CGI, its data workflow, deployment and configuration concepts, event configuration, data-source connectivity, API communication, logging and maintenance.

What Is the SLM Cloud Gateway Interface?

The SLM Cloud Gateway Interface is an integration application that connects multiple sources of plant process data with SLM. Its purpose is to collect data and identify events according to conditions configured for individual data points within SLM.

CGI evaluates incoming raw data against those configured conditions. When a data point meets the required value and condition, CGI creates an event record that can then be sent to SLM through the SLM API.

Potential data sources include:

  • Plant data historians
  • OPC servers
  • Relational databases
  • FTP-based files
  • Other supported data sources accessed through CGI plugins

CGI is built on the ASP.NET Core platform. The training material demonstrates CGI operating through an Azure-hosted environment and also describes Windows, Linux and container deployment options.

For the wider infrastructure context surrounding CGI and other SLM components, see the SLM On-Premise Hardware and Software Requirements guide.

How the SLM Cloud Gateway Interface Polls, Processes and Sends Data

The fundamental SLM Cloud Gateway Interface workflow can be divided into three stages: polling, processing and sending.

  1. CGI collects data from the configured historian, OPC source or other supported repository.
  2. The collected data is processed against event conditions obtained from SLM.
  3. When CGI identifies a qualifying event, it creates an event record in a temporary buffer.
  4. The processed event is then sent through the SLM API.
  5. The API provides the interface used to create the corresponding event within the SLM instance.
During processing, CGI can look for changes in process tags or statuses that indicate an event has occurred. This means the integration is not simply transferring every raw data value into SLM. CGI evaluates the incoming data against the event configuration before creating the relevant event record. This relationship with the API makes the SLM API Usage guide a useful companion resource for administrators working with CGI integrations.

SLM Cloud Gateway Interface Configuration

The web-based SLM Cloud Gateway Interface includes application and plugin settings that are configured according to the individual deployment and data source. These settings control important elements of polling, processing, authentication, event transmission and maintenance.

Configuration options demonstrated in the CGI training include:
  • Authentication type and credentials
  • CGI URL
  • Temporary-data cleanup settings
  • Customer and instance identification
  • Debug settings
  • Error notification email
  • Log retention
  • Authentication key name and key value
  • Last runtime
  • Microprocessing
  • Historical polling offset
  • UTC and server time-zone offsets
  • Plugin selection
  • Tag polling
  • Bad-tag handling
  • Scan interval
  • Historical or live scan type
  • Automatic sending to SLM
  • SLM timeout
  • SLM API key and API URL
  • Data-source configuration
  • Tag filtering
  • Data-source username and password where required
The correct combination depends on the data source and intended workflow. For example, polling can be enabled or disabled depending on whether a source uses tags, while the scan interval determines how frequently CGI checks for data. Time settings are also important when processing historical information. The polling offset can be used to prevent CGI from collecting data that may still be changing at the source, while UTC and server offsets account for differences between the CGI server and source-system time zones.

Configuring Historian Events for the SLM Cloud Gateway Interface

CGI relies on event configuration in SLM to determine what conditions in the incoming process data should result in an event. The training demonstrates configuration for bypass, demand and fault events associated with a Safety Instrumented Function.

Within the SIF Historian configuration, the required event types are first enabled. Events can then be added individually or synchronized with the relevant components.

An event configuration can include information such as:

  • Whether the event is enabled
  • Server configuration where applicable
  • Historian tag name
  • Comparison operator
  • Activation value
  • Reset value where applicable
  • Associated SIF or component

For example, a bypass can be configured so that a tag value equal to 1 represents activation and a value equal to 0 represents reset. CGI evaluates changes in that process value and identifies the corresponding event condition.

Importantly, the event is based on the change in state. A value remaining constantly at 0 or constantly at 1 does not repeatedly create the event. CGI evaluates the transition between configured states.

Retrieving CGI Configuration Through the SLM API

The CGI configuration used by the service is available through the SLM API. Within CGI, the EDA Config area contains configuration retrieved from SLM, including the tags that CGI uses during processing.

Configuration can be refreshed from CGI or retrieved through an API GET request. The training demonstrates this process using API testing tools and shows the returned configuration as JSON data.

The configuration payload can contain information including the event name, event type, application object reference, tag information, comparison operator, comparison value and whether the configuration is enabled.

CGI then uses this configuration when evaluating process data. It compares the tag received from the historian or other source with the configured event tag. When the tag matches, the value is evaluated against the configured condition to determine whether an event transition has occurred.

Microsoft’s ASP.NET Core authentication documentation provides additional technical background on authentication schemes and bearer-based authentication used by ASP.NET Core applications.

Data Sources, Protocols and CGI Plugins

The SLM Cloud Gateway Interface can accommodate different types of plant data sources. These may provide historical data, live data or file-based data depending on the site and integration architecture.

The training identifies supported integration approaches including:

  • PI Web API
  • OPC Classic
  • OPC UA
  • OPC Classic Live
  • File passing

CGI uses plugins to accommodate the different source types. The appropriate plugin is selected through the CGI configuration so that the service can communicate with the required source.

File-based integrations may require an FTP transfer or another process that places data into an accessible folder. Other sources can communicate through technologies including OPC, Web APIs and WebSockets.

The network architecture depends on where CGI and the data source are located. The training describes deployments where process data may originate from a control network or enterprise business network, with CGI positioned within a DMZ or another appropriate network location. Firewall requirements therefore depend on the deployment architecture.

Sending Process Events to SLM

Once the SLM Cloud Gateway Interface identifies and processes an event, the event can be sent to the SLM API. The API provides the interface used to create the corresponding event within the SLM instance.

The event payload demonstrated in the training contains information such as:

  • Process event name
  • Application object reference for the associated SIF
  • Event type
  • Primary tag where applicable
  • Event operator and comparison value where applicable
  • Timestamp indicating when the event occurred

A successful API request returns an HTTP success response together with information about the created event. Depending on the event, this can include information such as its activation date, source and duration.

CGI can also be configured to buffer an identified event before transmission or automatically send processed events to SLM as part of its normal workflow.

SLM Cloud Gateway Interface Logging and Maintenance

CGI includes several logging functions to help administrators understand application activity and troubleshoot data-processing problems.

The general logs provide visibility into application activity and can be filtered to review informational, error and debug information. When debug mode is enabled, additional detail is generated to show individual steps occurring within the system.

Process logs focus specifically on data polling. If CGI encounters a problem while retrieving or processing source data, these records can help administrators investigate the polling workflow.

CGI also includes maintenance functions for temporary data, event information and accumulated logs. Automatic cleanup can be configured for temporary data after a defined record threshold is reached, while log-retention settings determine how many records are retained before cleanup occurs.

Administrators can also manually delete general and process logs where required. Because enabling debugging can generate a substantial volume of log data, debug logging should be used deliberately when investigating a problem rather than treated as the normal operating state.

For broader application administration tasks, see the SLM Application Maintenance guide.

Together, these functions give administrators visibility across the complete CGI workflow: collecting source data, processing configured event conditions, transmitting events to SLM and investigating problems when the expected workflow does not complete successfully.

Please complete the form below

Please complete the form below.

You will automatically be forwarded to a demonstration video