Contents
Cirrus Link Resources
Cirrus Link Website
Contact Us (Sales/Support)
Inductive Resources
Ignition User Manual
Knowledge Base Articles
Inductive University
Forum
...
To scan all tags, see Opto 22 SNAP PAC Driver Module Configuration.
...
...
For help using PAC Control, see the PAC Control User's Guide (available from the Opto 22 website).
Anchor | ||||
---|---|---|---|---|
|
...
Code Block | ||
---|---|---|
| ||
/* If the tag begins with ana ' 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] = "i64.MyInt64.rw"; stPublicListOfStrategyTags[3] = "s.MyString.rw"; stPublicListOfStrategyTags[4] = "t.MyTimer.rw"; stPublicListOfStrategyTags[5] = "i32b.MyBool.rw"; stPublicListOfStrategyTags[6] = "i32t.MyInt32Table[0-9].rw"; stPublicListOfStrategyTags[7] = "i64t. MyInt64Table [0-20].rw"; stPublicListOfStrategyTags[8] = "f32t.MyFloatTable[10-19].rw"; stPublicListOfStrategyTags[9] = "st. MyStringTable [0-9].rw"; stPublicListOfStrategyTags[10] = "dio.MyDiscreetPoint"; stPublicListOfStrategyTags[11] = "aio. MyAnalogPoint.rw"; stPublicListOfStrategyTags[12] = "i32te.MyInt32TableElement[5].rw"; stPublicListOfStrategyTags[13] = "i32tebp.MyInt32TableElementBitPick [9].2.rw"; stPublicListOfStrategyTags[14] = "i64tebp. MyInt64TableElementBitPick [5].8.rw"; stPublicListOfStrategyTags[16] = "i32bp.MyInt32BitPick.1.rw"; // Remember, initialize index 0 last! stPublicListOfStrategyTags[0] = "i32.Int32.rw"; |
...
3. Click Save to close the OptoScript block and save the changes.
...
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 the stPublicListOfStrategyTags table or changing its name will not remove the table from the controller, because persistent tables stay in the controller's RAM (even if they don't appear in the strategy).
To clear the controller's RAM and restart the strategy:
Anchor | ||||
---|---|---|---|---|
|
...