Click or drag to resize

Transaction Editor Getting Started

Home

This topic contains the following sections:

Main Panel

When “Processing Environment” tab is selected in Main Panel, this panel allows editing the transaction selected on the tree explorer. It contains the following areas and objects:

OPC Viewer Transactioneditor
  1. Graphical transaction editor – This area presents the transaction graphically. Usually it contains many operations objects with connections between them.

  2. Transaction property grid –it contains all settings for this transaction.

  3. Connection – it allows defining the flow of the data connecting outputs and inputs of operations.

  4. Operations – operations are represented by a figure. The shape and color depends on the represented operation type. Each operation is an atomic part of a transaction, that represents a particular task or computation (e.g. read/write an item, add/sub/multiply/divide, compare, save to data base, etc. ). To improve readability, each operation type has different colors. Each operation can contain 0 or more inputs and outputs. Couples of inputs and outputs of different operation can be connected together. The connections determine the processing sequence of the operations in time. Transaction cannot contain circular connections.

  5. Sample input or output. – to create a connection, click the left mouse button on a particular output and then click on the selected input.

Operations can be moved freely on the graphical editor. Each operation shape or connection can be selected by clicking on it. Selected objects are marked with black and red diagonal lines. Double click on the operation shape opens the operation property dialog window. Right click in the editor area opens the context menu allowing managing the content.

Editor Context Menu

The editor context menu is illustrated below:

OPC Viewer Transactioneditor Context menu
  1. Removes the selected connection.

  2. Removes the selected operation.

  3. Changes the zoom (size of operations and the connections) in the editor (default is 100%).

  4. Adds an operation to the current transaction. It opens a submenu with all available operation types (6).

  5. Reallocates all figures on the editor panel to make the transaction more readable.

  6. Submenu with available operation types. Clicking on an operation type adds the operation to the panel and opens operation property dialog.

Example Transaction

The example below illustrates a simple transaction:

OPC Viewer Sample Transaction

This example defines the transaction that contains four operations. It reads values of OPC items: R/1500 and R/1501, adds the obtained tags values and writes the result to the tag R/1502.