Versions Compared

Key

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

...

  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.

    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 tableselements of a table, 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.

...

  • Strong-typed OPC tables are not supported.
  • Tag names are case-sensitive.
  • To comment out a tag (for example, to disable a tag without having to modify the entire string table), prepend a / (slash) or ' (single straight quote mark) to the OptoScript tag name. Then, restart the Driver module in Ignition Gateway.


    Code Block
    titleEXAMPLES
    stPublicListOfStrategyTags[3] = "/i32.MyIntVariable.rw";
    stPublicListOfStrategyTags[4] = " 's.MyStringVariable";


Naming standard:  <OptoScript data type code>.<PAC Control tag name>[<index number or range>].<bit location>.< writeable attribute>

...

To stop scanning for specific tags and start scanning all tags, you must clear the controller's RAM, and then download and start the strategy.Note that deleting RAMand restart the Driver module. (Otherwise, the stPublicListOfStrategyTags table or changing its name will not remove the table from the controller, because persistent tables stay will remain in the controller's RAM (memory, even if they don't appear in you delete it from the strategy.).

To clear the controller's RAM and restart the strategy:

  1. In PAC Control Config mode, modify the stPublicListOfStrategyTags table (Configure > Variables > String Tables > Modify):
    1. Change the table's name.
    2. Change the table's Initialization setting from "Persistent" to "Initialize on strategy download."
  2. Start PAC Control Debug mode (Mode > Debug) and clear the controller's RAM (
  3. In PAC Control, make sure the strategy is running in Debug mode.
  4. In the PAC Control menu bar, click Control Engine > Clear RAM). At the prompts, click:
    1. "Yes (" to continue).
    2. Yes ("OK" to acknowledge the number of bytes).
    3. "Yes (" to download the strategy).
  5. Then, click Run Strategy.run the strategy (Debug > Run).
  6. In Ignition Gateway:
    1. Restart the Driver module (Configure tab > System > Modules).
    2. Use
    Finally, use
    1. OPC Quick Client or Ignition Designer to view and get
    all
    1. the tags.

For details, see OSP: Configuration.

Troubleshooting
Anchor
troubleshooting
troubleshooting

...