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

AVEVA™ Plant SCADA

PageDisplay

  • Last UpdatedFeb 02, 2024
  • 3 minute read

Displays a graphics page in the active window. The page needs to be in one of the operator's current areas. The page to be displayed is identified by its Page Name or the Page Number.

Note: If you just need to update the associations on a Super Genie window (rather than reloading the entire page), you can use the function AssWinReplace.

You can specify if the page operates within the context of a particular cluster in a multiple cluster project. When the page launches during runtime, the ClusterName argument is used to resolve any tags that have a cluster omitted.

Plant SCADA stores the current page before it displays the required page. You can call PageLast() to re-display the pages in the page navigation history.

You cannot call this function from the Exit command field (see Edit the Properties for a Page) or a Cicode object.

Note: This function is not supported in the server process in a multiprocessor environment. Calling this function from the server process results in a hardware alarm being raised.

Syntax

PageDisplay(Page,[ClusterName])

Page:

The name or page number of the page to display (in quotation marks ""). Can be prefixed by the name of a host cluster, that is "ClusterName.Page". This will take precedence over the use of the ClusterName parameter if the two differ.

ClusterName:

The name of the cluster that will accommodate the page at runtime (in quotation marks ""). The specified cluster is used to resolve any tags that have a cluster omitted. If the Page parameter is prefixed with the name of a cluster, this parameter will not be used.

This parameter is optional, however if you omit a cluster context in the Page properties, then any tags which omit an explicit Cluster. TagName will be ambiguous and become unresolved if you have multiple clusters defined in the project. Note that this ambiguity and resulting unresolved state will only occur if the parameter [General]TagDB is set to "0" which disables variable tag database loading.

Return Value

0 (zero) if the page is successfully displayed, otherwise an error is returned.

PageGoto, PageLast

Example

Buttons

Text

Mimic Page

Command

PageDisplay("Mimic")

Comment

Display the "Mimic" page

System Keyboard

Key Sequence

Page ############## Enter

Command

PageDisplay(Arg1)

Comment

Display a specified page

PageDisplay("MIMIC1");
! Displays page "MIMIC1".
PageDisplay("MIMIC2");
/* Displays page "MIMIC2" and places page "MIMIC1" onto the
page navigation history. */
PageDisplay("10");
/* Displays page "10" and places page "MIMIC2" onto the page navigation history. */
PageLast();
/* Displays the last page, that is page "MIMIC2" and
removes it from the page navigation history. */

Note: Before Plant SCADA version 5.0, page records could be edited in the Project Editor. One of the fields available for configuration was "Page Number". The value entered for a page could then be used in runtime with the Page Cicode functions such as PageDisplay(), PageGoto(), and PageInfo(1).
For example, PageDisplay("1") can be used to display the page that has "1" (without the quotes) set in the Page Number field. PageInfo(1) returns the Page Number of the current page. From version 5.0 on, this feature is only backwards-supported. The "Alias" field in the project Pages.DBF file still contains the Page Numbers from upgraded projects; however, the Pages database records are no longer available for direct editing in Plant SCADA.

See Also

Page Functions

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