Introduction

Sigma has hundreds of pre-built integrations to data sources providing enterprise-grade security to protect your data. It can provide both off the shelf and develop custom interfaces in line with your organisation’s needs, to enable data transfer to and from data sources. The Sigma Import Agent (SIA) is just one of a number of options that can be provided for importing data.

The SIA is an intelligent solution designed to transfer energy data from your on-site system into Sigma. Flexible and easy to set-up, it provides robust and reliable data transfer from a wide variety of sources.

The SIA scheduling function automates data transfer at the intervals specified by you. Data is transferred into Sigma via the Sigma application programming interface (API) and stored locally on the SIA until successfully loaded into the system to provide fault tolerance. Incidents where data transfer may be interrupted are managed by the SIA, which automatically re-sends the data when the connection is restored. Information passes through security via the internet and Sigma firewalls before being loaded and processed by Sigma.


Overview

Setting up Sigma to import HF data from one or multiple external systems using the SIA involves some of the following activities:


Current Supported External Systems

How Does the Sigma Import Agent Work?

On startup, the SIA creates a local database, if one does not already exist. It then contacts the Sigma Cloud to get a list of scheduled imports to be run, using the Import Agent that was captured during installation to identify the relevant scheduled imports. This list is recorded in the local database and is refreshed at regular intervals. The local database also holds information on Sigma Channels for which HF data will be imported.

Once running, the SIA triggers each scheduled import as it becomes due. It reads the HF data from the external data collection systems /devices and records the HF data in the local database.

At regular intervals, the SIA transfers the HF data from the local database to the Sigma Cloud. Once successfully loaded into the Sigma Cloud, the HF data is cleared from the local database.

The SIA provides a log file which confirms the scheduled imports that have been run and the Sigma Channels for which HF data has been imported.


Configuring Import Agents

This section describes how to configure Import Agents within Sigma to represent each SIA instance


View Import Agents

To view all Import Agents:


Add an Import Agent

To configure a new Import Agent:


View/Edit an existing Import Agent


Remove an Import Agent

To remove an existing Import Agent:

Installing and Running the Sigma Import Agent

This section describes how to install and run the SIA at each Site - this covers both new installations and updating an existing installation.

SIA Release Mechanism

Periodically new versions of the SIA software will be issued containing enhancements or bug fixes. These will typically be issued alongside an upgrade to the Sigma Cloud and you will be notified where its is recommended that you upgrade to the latest version.

New SIA packages are designed to be backwards compatible, so will usually continue to work even though newer versions have been issued.

Pre-requisites

If this is the first time you are installing the SIA then you must first contact TEAM Support for your SIA password. You will need this when running the SIA Installer.

If you have previously installed the SIA and the related Sigma Import Agent Windows service is running, the SIA service needs to be stopped from the Task Manager:

Please note you will need Administrator rights to stop and start the SIA service successfully.

Run the SIA Installer

Specify Java Installation Version

A pop-up asks you for the filepath of the relevant Java installation version

Review License Agreement Terms

Define the Installation Folder

Enter Credentials for Running the SIA

Complete the SIA Installation


Start the Sigma Import Agent Service

Complete and Check the Installation

View Log files

Following the successful installation, log files will be seen under the ‘Sigma Import Agent’ folder in the location folder.

The log file will provide details of the application initialisation/startup, which includes initialising the local database, setting up initial static data, reading/updating schedule details and authorising access to the Sigma Cloud.

Once the SIA is running, the log file will provide details of scheduled imports that are triggered.

For each scheduled import that is triggered, the log file will identify the number of channels found to be processed (from the source database, from the local database or from the Sigma Cloud) and the status of the channel data import.

Any exceptions that occur are logged as “ERROR” messages, for example:


Configuring Scheduled Imports

To start the configuration:

Choose an Importer

Enter Importer Options

This step applies to:

Enter Importer Options for SIPe

Enter Importer Options for Trend963

Enter Importer Options for TAC (Continuum)

Enter Importer Options Landis and Gyr

Enter Schedule Options

Complete Configuration

Configuring Channels

Configure SIPe Channels

The ‘SIPe’ importer uses information in your SIPe database to build a list of data points that are available for upload into Sigma as follows:

  1. It finds all tables which have a table name that is in the format “device_<value>” (not case-sensitive).
  2. It then uses the ‘Host name’ entered as an Importer Option when setting up the scheduled import and appends to this the table name obtained from the previous step to build a Data Load ID.
Data Load IDTable NameHost Name
team.co.uk_Device_1

Device_1

team.co.uk
team.co.uk_Device_2Device_2team.co.uk
team.co.uk_Device_3Device_3

team.co.uk

team.co.uk_Device_4Device_4

team.co.uk

team.co.uk_Device_5Device_5

team.co.uk

For each SIPe data point that you wish to import HF data from, you will need to configure a Periodic HFD Channel within Sigma with the corresponding Data Load ID. To do this:

Configure Trend963 Channels

The ‘Trend – 963 MSSQL’ importer uses the following information in your Trend963 database to build a list of data points that are available for upload into Sigma:

Database ColumnDatabase TableDescription
SiteIdSiteDetailsThe Unique ID of the Site
SiteLabelSiteDetails

The text label given to the Site

LanNoLansThe LAN Number (each Site can have multiple LANs)
NodeAddressOutStationsThe Outstation Node Address (each LAN can have multiple outstations, ie controllers)
ItemStrategyListThe Unique ID of each device connected to a given outstation

This information is used to derive a Sigma Data Load IDs for each data point as follows:

 "S" + <SiteID> + <SiteLabel> + "L" + <LanNo> + "O" + <NodeAddress> + <Item>

For example:

Data Load IDSite IDSite LabelLan NoNode AddressItem
S1TeamL11O11D11Team1111D1
S1TeamL11O11D21Team1111D2
S1TeamL11O11D31Team1111D3


For each Trend963 data point that you wish to import HF data from, you will need to configure a Periodic HFD Channel within Sigma with the corresponding Data Load ID.  To do this:


Configure MODBUS Channels

For each MODBUS device that you wish to import HF data from, you will need to configure a Periodic HFD Channel within Sigma with a Data Load ID that contains details on how to connect to the MODBUS device. To do this:

modbus://<host-name>:<port-number>/<starting register>/<data-type>/<slave id>


Configure TAC Continuum (Schneider Electric) Channels

Both the Periodic and Non Periodic Importers use the ExtendedLog table in the TAC MSSQL database to source data for channels. The Continuum Importers support multiple agents, the agent name needs to be included in the DataLoad Id to identify which database should be used.  The system processes all channels where the Data Load ID 1 starts with "tac://". A Continuum Compliant dataload ID will look as follows:

Pattern:tac://<AGENT-NAME>/<SOURCE>/<HIGH-POINT-ID>:<LOW-POINT-ID>
Example:tac://DEFAULT/i/1010834776:1090526341

The system then runs the following SQL to get the data for the channel:

 
SELECT PointIdHi, PointIdLo, DateTime, PointValue 
  FROM ExtendedLog
 WHERE (PointIdHi = ?) 
   AND (PointIdLo = ?) 
   AND (DateTime > ? )
   AND (DateTime <= ? ) 
ORDER BY DateTime


For each data point that you wish to import data from, you will need to configure a Periodic HFD or Non Periodic HFD Channel (depending on which importer you use) within Sigma with the corresponding Data Load ID.  To do this:


Configure Landis and Gyr Channels