Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Click here for Using the Opto 22 SNAP PAC Driver Module tips.

The Opto 22 SNAP PAC Driver module is designed to scan either:

For best performance, we strongly recommend you use the stPublicListOfStrategyTags table to get tags.

can scan specific tags. This method offers the best performance but requires setup in PAC Control.

To scan all tags, see Opto 22 SNAP PAC Driver Module Configuration.


If you're familiar with Ignition and PAC

...

Control™...

  1. In the PAC Control strategy:
    1. Create the stPublicListOfStrategyTags table.
    2. Immediately after Block 0 in the Powerup chart, add an OptoScript block.
    3. In the OptoScript block, populate the table according to the OptoScript Syntax and tag naming standard
    4. Save, download, and run the strategy.
  2. In Ignition:
    1. Restart the SNAP PAC Driver to refresh the tag list. 
    2. Browse the Opto 22 tags and use them in your project. 

...

  1. In PAC Control, open your strategy in Configure mode.
  2. In the Strategy tree window, right-click the String Tables folder, and then click Add. The Add Variable dialog box opens. Complete the fields.

    Image Modified

    Name:  Enter the table name: stPublicListOfStrategyTags. The name is case-sensitive. 
    Description:  Optional.
    Type:  Leave the default (String Table).
    Initialization:  Select Persistent
    Initial Value:  Leave the default (blank). 
    Table Length:  Enter a number equal to or greater than the number of tags to import. For example, to import 10 floats and 6 tables, enter a Table Length of 16 or more. (A table variable counts as one tag, despite the number of elements it has.) Note: Ignition Edge has a limit of 500 tags. Ignition Enterprise does not limit the number of tags you can use
    String Width:  Enter a value of 100.

  3. Click OK to close the dialog box and save your changes.

...

In the OptoScript block, you reference PAC Control tags using a pre-defined naming standard that consists of the tagístag's:

  • Data type code
  • PAC Control tag name
  • Index number (Table elements only)
  • Bit location (Bit-picks only; 0 is the first bit)
  • Writeable attribute (Writeable tags only)

...

  1. To refresh the tag list, go to Ignitionís Ignition's Configure tab, and select System > Modules. In the Cirrus Link Solutions section, restart the Opto 22 SNAP PAC Driver module. When prompted, click Confirm.
    Note: The tag names displayed in Ignition will be different but easily recognizable.
  2. To browse tag values:
    From Ignition's Configure tab: Select OPC Connections > Quick Client, and then expand the folders to find the tags from the Opto 22 device's tags.

    From Ignition Designer's Design Mode: In the menu bar, click View > Panels, and then select OPC Browser. In the OPC Browser panel, expand the folders to find the Opto 22 device's tags.

Troubleshooting
Anchor
troubleshooting
troubleshooting


TIP: If you canít can't find a tag, check the following:
* The strategy is running in PAC Control.
* You correctly entered the tag name in the stPublicListOfStrategyTags table.
* After making changes to the table, you restarted the Driver module in Ignition and waited for its status to change to Connected.
For more information, see the Ignition Logs.

...

If the Driver module canít find the stPublicListOfStrategyTags table in the strategy, it automatically retrieves the strategyís inventory of all driver-supported tags in their native format. This means that PAC Control's object inventory will not match Ignitionís object inventory. (For example, a 32-bit integer in PAC Control may be used as a number, a bitmask, and a zero/non-zero Boolean value.) For performance reasons, we strongly discourage scanning all tagsGateway’s Logs (Status tab > Diagnostics > Logs).