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

AVEVA™ Plant SCADA

SPCPlot

  • Last UpdatedJul 18, 2023
  • 2 minute read

This function is designed to work only on an SPCXRSChart page. It prints a single page showing three separate trends of the SPC Mean, Range, and Standard Deviation. The Mean needs to be at nAN, the Range at AN + 1, and the Standard Deviation at AN + 2. You can specify a title and a comment for the plot, and whether it is printed in color or in black and white.

Syntax

SPCPlot(sPort, nAN [, sTitle] [, sComment] [, nMode] )

sPort:

The name of the printer port to which the plot will be printed. This name needs to be enclosed within quotation marks. For example LPT1:, to print to the local printer, or \\Pserver\canon1 using UNC to print to a network printer.

nAN:

The animation point at which the Mean chart is currently situated. The Range and Standard Deviation charts need to be on the next two consecutive animation numbers. For example, if the Mean chart is at animation point 40, the Range chart needs to be at animation point 41, and the Standard Deviation chart needs to be at animation point 42.

sTitle:

The title of the trend plot.

sComment:

The comment that is to display beneath the title of the trend plot. You do not have to enter a comment.

nMode:

The color mode of the printer.

0 - Black and White (default)

1 - Color

Return Value

0 (zero) if successful, otherwise an error code is returned.

TrnPlot, TrnComparePlot, TrnPrint, PlotOpen

Example

/* This function will print the Mean trend (currently displayed at
animation point 40), the Range trend (currently at animation point
41), and the Standard Deviation trend (currently at animation
point 42). The result is a one page, black and white combination
of all three trends, printed to LPT1. */

SPCPlot("LPT1:",40, "Plant SCADA SPC Chart","Gradually increasing trend",0);

See Also

SPC Functions

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