Driven Scan Class - Manual Trigger

Driven scan classes can be used to allow operators to speed up or slow down polling rates on demand based on another trigger value.

To add a driven scan class based on a trigger value

First we need to create the Trigger tag.

  1. In the Tag Browser, right-click on the Tags folder, then go to New Tag > Memory Tag to create a memory tag.
    The Tag Editor window is displayed.

  2. In Tag Editor, enter:
    Name: Trigger
    Value: false
    Data Type: Boolean

  3. Click OK to add the Trigger tag to the Tag Browser.

Now lets add a driven scan class that updates the tags based on the value of the Trigger tag we just created.

  1. In the Scan Class Editor, create a new scan class by clicking on the green + icon on the lower-left of the window.

  2. Name the scan class, for example, you can name it Driven Manual, and set the Mode to Driven.
    This scan class executes based on the condition you set on the Driving Tag.

  3. Click on the tag icon next to the Driving Tag box, and select the Trigger tag you want to set the condition on.

  4. Set Operator to = and the Value to 1.

  5. Set the Slow Rate to 4000 (4sec) and the Fast Rate to 500 (1/2sec, a very fast rate).
    When the Trigger is equal to 1, it will use the Fast Rate and you can see the values changing very fast. When the Trigger is equal to 0, it will use the Slow Rate.

  6. Click OK.
    Now in the Tag Browser you will see a check box next to the Trigger tag for which you have set the on/off condition on it.