Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Reading Queued Traps

  • Last UpdatedDec 17, 2021
  • 1 minute read

You can read queued traps.

To read queued traps:

  1. Read tag TN to see if it is > 0.

  2. If TN is 0, there are no traps in the queue. Exit the process.

  3. Read the required data from the current trap by using tags Tx (where x is any value from 0-5).

  4. Log the values of the Tx or store them in other variables.

  5. Read tag TNVB to see if there are any subfields.

  6. If the number returned is greater than 0, read each subfield in turn by writing the subfield number to TNVB, and then reading the subfield OID and value from T5 and T6.

    Note: It is not necessary to write to TNVB (SubfieldNumber) before reading the first subfield because the default behavior of T5 and T6 reads is to return the value of the first sub-field.

  7. Write to TN to delete the current trap and move the traps in the queue forward.

  8. Return to step 1.

Related Links
TitleResults for “How to create a CRG?”Also Available in