Software Tools

Description

This sample program demonstrates one way of utilizing the VISION50's Screen Triggering Register (STR) to control which VISION50 screen is being displayed at any particular time.

The STR is an internal Vision50 variable. When a numeric value is copied to the STR, the Vision50 screen number, corresponding to this numeric value, is displayed. For example, if a value of 5 is copied to the STR, screen number 5 is displayed. The STR variable can also be changed dynamically by the SCADAPack logic by configuring a Vision50 tag to read/write to a specific SCADAPack IO database register. Then the value of this tag can be copied to the STR.

This sample has four screens (1 to 4) that are controlled by the operator using the NEXT and PREV buttons. A hidden screen (5) is displayed only when a value of 5 is written to register 40001 in the SCADAPack. This can be done dynamically, for example, by the logic in the SCADAPack whenever an alarm is detected or a particular event occurs. Once on the hidden screen, the operator uses the NEXT or PREV buttons to return to screen 1. The diagram below illustrates the screen display action:

  • A tag name 400001 is configured to read/write to SCADAPack IO database register 40001.
  • On the Application Task Lists screen, the Power On Tasks is configured to write a value of 1 to tag 400001 upon power up of the Vision.
  • On the Application Task Lists screen, the Global Tasks is configured to always write the value of tag 400001 to the STR.
    -On each of the screens, the Keys for Screen tasks are configured as follows:

Screen 1:
NEXT: Write 2 to Tag 400001
PREV: Write 4 to Tag 400001

Screen 2:
NEXT: Write 3 to Tag 400001
PREV: Write 1 to Tag 400001

Screen 3:
NEXT: Write 4 to Tag 400001
PREV: Write 2 to Tag 400001

Screen 4:
NEXT: Write 1 to Tag 400001
PREV: Write 3 to Tag 400001

Screen 5:
NEXT: Write 1 to Tag 400001
PREV: Write 1 to Tag 400001

The sample can be modified to add more screens and to add data display and data entry elements to each screen.

Instructions

To use this sample program:

  • Select the following link: STR_50.zip
  • Select the Open button. (Winzip is opened)
  • Select the Use Evaluation Version button. (The Winzip program list is displayed)
  • From Winzip, select the file in the display list and then extract it to a target folder on your computer.
  • Exit Winzip.
  • Open the Vision application.
  • Select File | Open to display the Open Vision Application dialog box.
  • Browse to the appropriate directory where the sample file is located and select the sample file.
  • Select the Open button to open the file.

Disclaimer:
This program is intended to demonstrate one or more programming functions or methods. This is not an application-specific program and is presented as a programming example only. Control Microsystems assumes no liability for the use or application of this example program or any portion thereof.