User Manual







Sepasoft - MES Modules
Cirrus Link - MQTT Modules


Inductive University
Ignition Demo Project
Knowledge Base Articles
IA Support
SDK Documentation
SDK Examples


Ignition 8
Ignition 7.9
Ignition 7.8

Deprecated Pages

Skip to end of metadata
Go to start of metadata

Transaction Groups are the heart of the SQL Bridge module. They are units of execution that perform actions such as storing data historically, synchronizing database values to OPC, or loading recipe values. A variety of group types, items types, and options means that Transaction Groups can be configured to accomplish almost any task.

Transaction groups are configured in the Ignition Designer. Each Transaction Group is associated with a table in a database Ignition is connected to, and is made up of one or more Items. The group will then execute at a specific interval of time, or on a user-defined schedule. Generally each execution will create a new row in the database table with a separate column for each Item in the group. However, it is possible for some types of Transaction Groups to take values from the database and write to specific Tags. 

Additionally, the Transaction Group can be configured to conditionally synchronize values by using a trigger. The trigger is evaluated every execution, and if the trigger condition is met, then synchronization will occur. If the trigger condition has not been met, then the group will wait until the next execution to re-evaluate the trigger.

There are four types of Transaction Groups: Standard, Block, Historical, and Stored Procedure. Each offers different functionality. For example, the Historical Group allows you to quickly configure a group that reads OPC data and push it to the database. While the additional flexibility of a Standard Group allows you take values from the database and write them to a PLC.

Transaction Groups enable you to perform tasks such as database to OPC synchronization, recipe management, and historical data logging.

Transaction Group Workspace

Transaction groups are edited through the Ignition Designer. When a group is selected, you are presented with the transaction group workspace. The workspace is broken into several parts:

  • Title bar - Shows the name of the currently selected group, as well as options to set it as Enabled or Disabled, and to Pause, if it's currently executing.
  • Item configuration - Shows all of the items configured in the selected group. Many settings can be modified directly through the display, the rest by double-clicking the item or selecting Edit in the context menu.
  • Action / Trigger / Options tabs - Defines how and when a group executes. Holds most of the options that apply to the group in general, such as the update rate, and which data connection it uses.
  • Status / Events tabs - Provides information about the executing group, including the most recent messages that have been generated.

On this page ...


About Transaction Groups


Each Item (Tag) in the Transaction Group consists of several properties, but the key properties are the Source/Latched Values and Target Name. 

Source and Latched Value

The Source Value will be the value of the items source. This can be something like a Tag or a direct OPC Item if writing to the database, but can also be the value pulled from the database if in DB to OPC mode. This value can change in between executions, depending on the source type. When the source is a Tag, it will update as the Tag updates, depending on how the Tag Group for the Tag is set. However, if the source is an OPC Item, it will update only when the group executes, unless the OPC subscription rate is overridden in the group. 

The Latched value will be the value that was written at execution. This can be the value that gets written to the database on execution in OPC to DB mode, or it can be the value that gets written to the Tag in DB to OPC mode. The value will only change on execution of the group.

Target Name

In most cases, the Target Name is a column on the database table the Transaction Group is associated with. However, it is possible to have the Target Name 'Read-only'. When set to 'Read-only' the value of the item will not be tied to any columns in the database, but is still visible from the Transaction Group and can be used as a trigger.

Enabling Group Execution

In order for groups to be evaluated, they must first be enabled. This is done by selecting Enabled in the group title bar, and then saving the project. The group executing can be stopped by reversing the procedure and selecting Disabled before saving. If you want to quickly and temporarily stop the group's evaluation, toggle the Pause button. This will prevent execution until the group is enabled again, or until the system is restarted.

Transaction Groups exist in a project, but they execute in the global Gateway space. This means that once your groups are enabled, they will run even without a client open.

Editing Group Settings

Group settings may be modified at any time, regardless of whether or not the group is executing. Modifications will be applied when the project is saved, and the group will be started or stopped as required. Some changes such as modifying items may cause features like live values to appear to be incorrect. It is therefore important to note the modified icon that appears next to the group, and to save often. If you would prefer to stop the group before making edits you can simply pause the group. Execution will begin again after the project is saved.

Action Settings

The action settings of a Transaction group define how often the group will be evaluated, as well as important settings that apply to the group as a whole. They are found on the Action tab, the first of the tabs on the right side of the Transaction Group workspace.

The Action settings vary for the different types of transaction groups, but a few settings are common to most of them:

Execution scheduling

How often the group is evaluated. For a number of reasons, the group may not execute during the evaluation. The most common reason is the trigger, but see Execution Cycle below for more possible reasons why evaluation will exit.

  • Timer - specifies the OPC Tag subscription rate for the OPC Tags. It can run at millisecond, second, minute, hour, or day rates.  
  • Scheduleis a specified start time on the update Rate. Set a list of time (or time ranges) that the group should run at. If the pattern specified includes a time range, at rate must be provided, and the group will execute as in timer mode during that period.
Update mode

For groups that support it, sets the default for how items are compared to their targets. Options are:

  • OPC to DB - Only read from the OPC server and write to the database.
  • DB to OPC - Only read from the database and write to the OPC Server.
  • Bi-directional OPC wins - Read and Write to both the database and OPC Server. On group start, write OPC values to the database.
  • Bi-directional DB wins - Read and Write to both the database and OPC Server. On group start, write database values to OPC items.
Data source

The database connection name the group should use. Can be Default, which will use the default connection for the project.

Table name

Name of the table in the database that the group should interact with (reading or writing, depending on the Update mode and individual item Mode settings). The tables listed in this dropdown are determined by the Data source property. 

This setting allows you to type arbitrary names into it. If you type the name of a database table that doesn't exist, and the Automatically create table setting is enabled, then the group will attempt to create the database table on start. 

Automatically create tableIf enabled, the transaction group will attempt to create a database table once the group starts running, assuming one doesn't already exist as determined by the Table name setting. If the table already exists, then nothing happens. 
Use custom indexIf left disabled, the group will attempt to add an index column to the database table when the group starts executing. If enabled, the group will use the column selected in the adjacent dropdown, or create a new column if you type in a column name that doesn't exist on the table (requires the Automatically create table setting to be enabled). 
Store timestampIf enabled, will attempt to store a timestamp value to the column specified in the adjacent dropdown. If you type in a column name that doesn't exist on the table, the group will attempt to create the column on start, assuming the Automatically create table setting.
Store quality codeStores an aggregate quality for the group along with the regular data. The aggregate quality is a bit-wise AND of the qualities of the items in the group.
Delete records older thanIf enabled, and the group is running, this setting will make the group delete older rows in the table. Options are minute(s), day(s), month(s), and year(s)
Table Action

Defines which row will be targeted by the group. 

  • insert new row
  • update/select - allows you to target specific rows in the database table. Options are:
    • first row - the group always executes against the first row.
    • last row - the group always executes against the last row
    • custom - allows you to write a custom where clause to determine which row should be targeted. Uses the Where text area. The custom clause can use references to values of items in the group.

    • key/value pairs - Provides dropdowns for both a column and a item in the group, allowing the group to target a single row in a table based on the item's value. In the image below, a value of 5 will be used in conjunction with the "group_table_ndx" column in the database table. Additional conditions can be added or removed with the Add or Delete buttons, below the table. 

      Meaning, when the group executes, it will target the row where group_table_ndx has a value of 5.

Group Update Rate

Groups generally work on a timer. They are set to run at a certain rate, and at that rate, then check the rest of the settings. If the trigger conditions pass, the group is executed fully. 

The Execution Schedule controls the rate at which the transaction group executes. On the Action tab of a group you selected, under Execution Scheduling, there are two options: Timer and Schedule. Timer, executes the group at a certain rate. Schedule, executes the group at specific times. When the Schedule option spans across a period of time, you must specify the rate at which the group executes during that time. 

How Groups Execute


The Timer acts as the heartbeat of the transaction group and is evaluated at the provided rate. It can run at millisecond, second, minute, hour, or day rates. The Timer specifies the OPC Tag subscription rate for the OPC Tags. When a Timer is running the transaction group it first analyzes the Tags inside the Basic OPC/Group Items section of the transaction group. Then it looks at the trigger configuration and evaluates for Tag changes. Then it evaluates the specific trigger conditions and decides to execute on a trigger. Depending on the trigger settings, full execution may not occur, but the trigger will at least be evaluated at this rate. If the triggered condition is true, the transaction group proceeds to the Triggered Expression Items section of the transaction group. Only after this flow is complete, will the transaction group interact with the database, and for example, insert the Tag values into the database.


An important difference between the Timer and the Schedule options is that the schedule option will automatically align to the specified start time on the update rate. With Schedule mode, you are providing a list of time (or time ranges) that the group should run at. If the pattern specified includes a time range, a rate must be provided, and the group will execute as in timer mode during that period.

The schedule is specified as a comma separated list of times or time ranges. You may use the following formats:

  • 24-hour times. Ie. "8:00, 15:00, 21:00", for execution at 8am, 3pm, and 9pm.
  • 12-hour with am/pm (if not specified, "12" is considered noon): "8am, 3pm, 9pm" 
  • Ranges, "8am-11am, 3pm-5pm"
  • Ranges that span over midnight, such as "9pm - 8am"

When using ranges, the execution times will be aligned to the start time. For example, if you specify a schedule of "9am - 5pm" with a rate of "30 minutes", the group will execute at 9, 9:30, 10, etc., regardless of when it was started. This is a useful difference compared to the Timer mode, which runs based on when the group was started. For example, if you want a group that runs every hour, on the hour, you could specify a 1 hour rate with a range of "0-24."

Execution Cycle

All of the transaction groups follow a similar execution cycle. The core evaluation may differ, but the general cycle is the same.

  1. Timer executes, group enters execution
  2. Is the group paused? Break execution.
  3. Is the Gateway part of a redundant pair? If so, is it active? If not active, break execution. Groups only execute on the active node.
  4. Evaluate run-always items: OPC items, Tag references, and Expression items set to ignore the trigger (or items placed in the run always section of the Configuration window). 
  5. Is trigger set/active? If there is a trigger defined, but it is not active, break execution.
  6. Evaluate "triggered" expression items.
  7. If applicable, read values from the database.
  8. Execute a comparison between items and their targets.
  9. Execute any writes to other Tags or the database that results from execution.
  10. Report alerts.
  11. Acknowledge the trigger, if applicable.
  12. Write handshake value, if applicable.

If an error occurs at any stage besides the last stage, execution will break and the failure handshake will be written if configured. The group will attempt execution again after the next update rate period.

If the group errors due to a bad database connection, it will need to be manually restarted once the database connection is brought back.


Group Update Rate

Trigger and Handshake Settings

The trigger settings determine when a group will actually execute. They are examined each time the group evaluates (according to the update rate of the group). If they pass, the group will run and perform its action against the database.

The trigger settings are the same for all group types and are found on the second tab (labeled Trigger), on the right side of the Transaction Group workspace.

The outcome of an execution is handled in the handshake section of the trigger section of the transaction group. When a group executes, it either completes successfully or an error prevents its execution.

The table below is a list of Trigger and Handshake settings. 

Only evaluate when values have changed

The group will execute every time the value or values change. If the values have not changed, it will exit the evaluation. Note, it is possible to monitor all Run-Always items in the group, or only specific ones.

  • Tags to watch for change - Executes on all Tags or one or more Tags in order to monitor for value changes. Select 'all Tags' or 'Custom,' and select the Tag(s) from the dropdown. 
Execute this group on a trigger

Enables a trigger on a specific item in the group. The trigger item can be any Run-Always item, such as an OPC item, Tag reference, or an Expression item set to "Run-Always" mode.

  • Trigger on item - select the item time you want to use as the trigger.
Only execute once while trigger is activeThe group will only execute once when the trigger goes into an active state, and will not execute again until the trigger goes inactive first. If unselected, the group will execute each time the trigger conditions evaluate to true.
Reset trigger after executionIf using the ">0" or "=0" trigger modes, the trigger can be set to write an opposite value after the group has executed successfully. This is useful for relaying the execution back to the PLC.
Prevent trigger caused by group startIf selected, the group will not execute if the trigger is active on the first evaluation of the group. In the course of designing a group, it is common to stop and start it many times, and sometimes it is not desirable to have the group execute as a result of this. Selecting this option will prevent these executions, as well as executions caused by system restarts.
Trigger conditions

Set any of the following trigger conditions:

  • is !=0 (or true)
  • is =0 (or false)
  • is active or non-active, which causes the group to exectue if the trigger value matches the is active condition. 
  • Active on value change, which will cause the group to execute if the trigger changes value at all. 
Write handshake on successSet the item and the value you want to see when the group executes successfully. 
Write handshake on failureSet the item and the value you want to see when an error prevents the group execution.

To learn more about configuring transaction groups with the different trigger options, refer to the Trigger Options page. 

Advanced Settings

Transaction groups offer several advanced settings that affect how execution occurs. These settings can be found under the Options tab for a group. The table below describes the Advanced settings. 

OPC Data Mode

Modifies how the group receives data from OPC.

  • Subscribe - Data points are registered with the OPC server, and data is received by the group on-change. This is the default setting and generally offers the best performance, as it reduces unnecessary data flow and allows the OPC server to optimize reads. However, it's important to note that data is received by the group asynchronously, meaning that it can arrive at any time. When the group executes, it "snapshots" the last values received and uses those during evaluation. If some values arrive after execution begins, they will not be used until the following execution cycle.

  • Read -  Each time the group executes it will first read the values of OPC items from the server. This operation takes more time and involves more overhead than subscribed evaluation, but ensures that all values are updated together with the latest values. It is therefore commonly used with batching situations, where all of the data depends on each other and must be updated together. It's worth noting that when using an OPC item as the trigger, the item will be subscribed, and the rest of the values read when the trigger condition occurs. 
Bypass Store and Forward SystemThis setting is only applicable to groups that insert rows into the database. Causes groups to target the database directly instead of going through the store-and-forward system. If the connection becomes unavailable, the group will report errors instead of logging data to the cache.
Override OPC subscription rateSpecifies the rate at which OPC items in the group will be subscribed. These items are normally subscribed at the rate of the group, but by modifying this setting it is possible to request updates at a faster or slower rate.
Always store NULL for bad quality itemsWith this option set to True, it will force the group to store a NULL value when the item has a bad quality, instead of writing the bad quality value.
Set NULL Tag values to defaultIf a NULL is read from the Tag, it will instead use a default value to write to the database, depending on the type. This can prevent errors for database columns that do not accept NULL values. The default values are the same as the table above.
Set NULL DB values to default

If a NULL is read from the database, it will instead use a default value to write to the Tag, depending on the type. This can prevent errors for OPC Tags that do not accept NULL values. Not available in a Historical Group.

This feature is new in Ignition version 8.0.11
Click here to check out the other new features

As of 8.0.11, enabling the Set DB Values to Default setting on Block Groups will clear the latched value, setting the item to a default if the corresponding database value is Null. 

 Click here to see default values
TypeDefault Value
String'' (Empty Sting)
Date/TimeCurrent Date/Time
Dataset[0x0] (Empty Dataset)
Array[] (Empty Array)

Creating a Transaction Group

This example demonstrates how to configure a transaction group, specifically a Historical Group. However, the process of creating any transaction group type is very similar, especially so in the case of a standard group. The Transaction Group Examples section contains more examples. 

  1. Click on the Transaction Groups in the Project Browser to switch the Designer's workspace to the Transaction Group workspace.
  2. In the Project Browser, right click on Transaction Groups > New Transaction Group  to make a New Historical Group. Name the group 'Group.'

  3. Browse your OPC device and drag some OPC Tags to the Basic OPC/Group Items section.
    Note that the group starts out 'Disabled' by default.

  4. Save your project.
  5. Click the Enabled button above the item tables to enable logging.

  6. Go to the Action tab and change the Table Name. For the example, we gave it the name "New_Test_Table."
    Note that right now your group only exists in the Designer.

  7. Save your project to start the group. Your group is now running and logging data to your database connection. 
  8. To see the data, you can use the Ignition Designer's built-in Database Query Browser. The easiest way to do this is to click on the database icon  next to your group's Table Name field. The Query Browser is a convenient way to directly query your database connection without leaving the Ignition Designer. Of course, you can also use any query browser tools that came with your database.


Basic Historical Group


Realtime Group

  • No labels