Omron

To Connect Ignition to an Omron Device

  1. Go to the Configure section of the Gateway webpage.

  2. Scroll down and select OPC-UA > Devices.

  3. On the Devices page, find the orange arrow and click on Create new Device.

  4. On the Add Device Step 1: Choose Type page, select Omron Driver, and click Next.

  5. On the New Device page, leave all the default values and type in the following fields:

    Name: Omron
    Hostname: type the IP address, for example 74.125.224.72
    Check the box for Show advanced properties? to see the additional settings, but you can keep all the defaults.

  6. Click Create New Device.
    The Devices page is displayed showing the Omron device is successfully created and added to Ignition.

  7. On the Devices page, click the tags link next to the newly created device.
    The Manage Tags page is displayed, allowing you to configure which variables in the device will show up as tags in Ignition.

Gateway Settings

General

 

Name

 

Enabled

 

Main

 

Hostname

The hostname or IP address of the device.

Timeout

The request timeout, specified in milliseconds. The default is 2,000.

Concurrency

The number of concurrently issued requests allowed. There is a 1:1 correlation between concurrency and the number of CIP connections used.

Advanced

 

Connection Size

The CIP connection size to use. The default (and maximum) is 1,994 bytes.

Slot Number

The slot number in the backplane in which the CPU is located.

Exporting from the Device

To export variables from Sysmac Studio, navigate to the global variables and select Tools > Export Global Variables > CX-Designer.

images/download/attachments/6033804/sysmac_export.png

The variables will be saved to the clipboard in tab-separated format. You can now paste the contents into an empty text file for use with importing into the Ignition Gateway.

Managing Tags

In order to browse tags in the Designer, you must first create a mapping for the device in the gateway. The Manage Tags page can be accessed by navigating to the Omron device and clicking the tags link.

images/download/attachments/6033804/tags_link.PNG

Importing Tags

Once on the Manage Tags page, you can manually enter the tags, or import them from a tab-separated file.

When importing, first choose a file, then click the Import button. The default option when importing is to replace the Tags table with tags from the import. Select the append option to append tags to the table.

images/download/attachments/6033804/emptyImport.PNG

images/download/attachments/6033804/imported.PNG

Once you save any changes made to the tag mapping, you can view the tags in the Designer OPC Browser.

images/download/attachments/6033804/opc_browser.PNG

Addressing

In the Tags table of the Manage Tags page, we have four columns of configuration per tag:

  • Name - The corresponding address of the variable found in the Omron device. Struct members are separated with periods.

  • Datatype - The datatype of the variable found in the Omron device.

  • Chars - The maximum number of characters that a String tag will contain.

  • Elements - Denotes whether the tag is considered a scalar or array. See below for more detail on specifying the number of elements to read from the device.

  • R/W - Specifies read / write access permissions on the tag.

Scalars

Leaving the Elements column blank will result in a scalar tag. When reading from the device, only one element will be requested.

images/download/attachments/6033804/scalar.PNG

Arrays

Specify the number of elements in an array in the form of 0..N . The initial index 0 is always included, so an array mapped with 0..4 elements is a 5 element array.

images/download/attachments/6033804/array.PNG

Multi-Dimensional Arrays

Multi-dimensional arrays are specified in the same way as arrays, with each group of indices separated with a comma.

images/download/attachments/6033804/array2d.PNG

Optional Format

Array elements may also be specified with a single number equaling the total number of elements.

images/download/attachments/6033804/array2d_opt.PNG

Strings

The number of characters for String variables is specified in the Chars field.

images/download/attachments/6033804/string.PNG

String arrays are mapped using both the Chars and Elements field.

images/download/attachments/6033804/stringArray.PNG