Versions Compared

Key

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

Click here for troubleshooting tips.

The Driver module is designed to scan either:*

  • The tags you identify in a special stPublicListOfStrategyTags table, or

...

  • All tags in the Opto 22 device.

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

If

...

you're familiar with Ignition and PAC

...

Control...

...

  1. In the PAC Control strategy:

      ...

        1. Create the stPublicListOfStrategyTags table.

      ...

        1. Immediately after Block 0 in the Powerup chart, add an OptoScript block.

      ...

        1. In the OptoScript block, populate the table according to the OptoScript Syntax and tag naming standard. 

      ...

        1. Save, download, and run the strategy.

      ...

      1. In Ignition:

          ...

            1. Restart the SNAP PAC Driver to refresh the tag list. 

          ...

            1. Browse the Opto 22 tags and use them in your project. 

          Step-by-step instructions
          For help using PAC Control, see the PAC Control Userís Guide (available from the Opto 22 website).
          Create the stPublicListOfStrategyTags table
          1. In PAC Control, open your strategy in Configure mode.
          IMAGE7.JPG
          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.
          IMAGE8.JPG
          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.
          Add an OptoScript block for the tag list
          1. Open the Powerup chart.
          IMAGE9.JPG

          ...