Versions Compared

Key

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

...

Click here for troubleshooting tips.

The Opto 22 groov EPIC and SNAP PAC Driver module can scan specific tags. This method offers the best performance but requires setup in PAC Control.

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

...

  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 groov EPIC and SNAP PAC Driver to refresh the tag list. 
    2. Browse the Opto 22 tags and use them in your project. 

...

Code Block
titleEXAMPLE
/*
NOTES:
- All tags are readable. Use the .rw attribute to write to a tag. 
- Important! Initialize the element at Index 0 LAST. This indicates
  to the driver that all elements in stPublicListOfStrategyTags 
  have been initialized.
- If the tag begins with a ' or a /, the tag is ignored.
Important! Initialize the first table element (at Index 0) last (because 
a blank string in Index 0 tells the driver that the
string table has not yet been initialized).
*/
stPublicListOfStrategyTags[0] = "";
stPublicListOfStrategyTags[1] = "f32.MyFloat.rw";
stPublicListOfStrategyTags[2] = "i32.MyInt32.rw";
stPublicListOfStrategyTags[3] = "i64.MyInt64.rw";
stPublicListOfStrategyTags[4] = "s.MyString.rw";
/* Use "t" for up and down timers. Timers are read-only.*/
stPublicListOfStrategyTags[5] = "t.MyUpOrDownTimer";
stPublicListOfStrategyTags[6] = "i32b.MyInt32UsedAsBoolean.rw";
/* For tables, enter the element's index or an index range in brackets. 
For example, "i32t.MyInt32Table[0].rw" or "i32t.MyInt32Table[0-0].rw" */
stPublicListOfStrategyTags[7] = "i32t.MyInt32Table[0-9].rw";
stPublicListOfStrategyTags[8] = "i64t.MyInt64Table[0-20].rw";
stPublicListOfStrategyTags[9] = "f32t.MyFloatTable[10-19].rw";
stPublicListOfStrategyTags[10] = "st.MyStringTable[0-9].rw";
stPublicListOfStrategyTags[11] = "dio.MyDiscretePoint";
stPublicListOfStrategyTags[12] = "aio.MyAnalogPoint.rw";
/* Use single-element table tags (i32te, i64te, f32te, stte) only with a
single index. For a range, use table element tags (i32t, i64t, f32t, st). */
stPublicListOfStrategyTags[13] = "i32te.MyInt32TableElement[5].rw";
stPublicListOfStrategyTags[14] = "i32tebp.MyInt32TableElementBitPick[9].2.rw";
stPublicListOfStrategyTags[15] = "i64tebp.MyInt64TableElementBitPick[5].8.rw";
stPublicListOfStrategyTags[16] = "i32bp.MyInt32BitPick.1.rw";
// Remember, initialize index 0 last!
stPublicListOfStrategyTags[0] = "dio.MyDiscretePointWrite.rw";

...

  1. To refresh the tag list, go to the Ignition Gateway Configure tab and select System > Modules. In the Cirrus Link Solutions section, restart the Opto 22 groov EPIC and 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 the Ignition Gateway 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.

...