SPC Controller | Vision

Sepasoft MES Module Suite

SPC Controller

An invisible component that makes SPC data available for reports and other components. The term invisible component means that this component appears during design time, but is not visible during runtime.

In cases where the SPC Selector offers too many options to the user, this component can be used. It has all of the same functionality as the SPC Selector but without the user interface. This means property bindings or script must be used to make the filter, compare by and data point selections. It also is used for providing data to canned reports and optionally allowing the user to make limited filter options.

To display the SPC results of this component in a control chart, bind the SPC Results property of the control chart to the SPC Results property of this component.

Component Palette

Component Properties

Properties are provided that can be set to affect the operation and look of the component. They can be set through the Property Editor in the Designer or through scripting.

Example

Code
event.source.parent.getComponent('SPC Controller').autoRefresh = True

Data

NameScriptingProperty TypeDescription
Automatic UpdateautomaticUpdatebooleanIf true, automatically update when property values change.
Auto RefreshautoRefreshbooleanIf true, refresh data when sample or definition information changes.
Row LimitrowLimitInt4The maximum number of samples to return in the results.
Stored SPC NamestoredSPCNameStringOptionally, used to set the SPC Controller to the same settings as a Stored SPC.
Definition NamedefinitionNameStringName of the sample definition.
Definition VersiondefinitionVersionInt4Version of the sample definition.
Attribute NameattributeNameStringName of the sample attribute.
AttributeUnitsattributeUnitsStringThe units label of the current sample attribute.
AttributeDefaultChartattributeDefaultChartStringThe default chart of the current sample attribute.
Use Default Chart TypeuseDefaultChartTypebooleanIf true, uses the default chart type from the attribute definition.
FilterfiltersString

Summarizes your filter selections in a string.

e.g. "Location=Nuts Unlimited\Folsom\Assembly\Assembly Station 1". Note, do not include '\\' in the equipment path.

Control LimitscontrolLimitsStringEnter the string value for the chart-specific control limits to be displayed on your chart (e.g. "Cp LSL, Cp USL"). Values may be custom, or select one or more pre-existing limits here: Control Limits
SignalssignalsStringSummarizes your signal selections in a string.
Measurement FiltermeasurementStringMeasurement number to filter on.
Nonconforming FilternonconformingFilterStringNonconforming items to filter on.
Nonconformity FilternonconformityFilterStringNonconformity items to filter on.
Pareto FilterparetoFilterStringItems to include in Pareto chart.
Additional FactorsadditionalFactorsStringAdditional factors to include in the data property.
Include Disabled AttributesincludeDisabledAttributesbooleanIf true, sample attributes that are disabled will be included.
Start DatestartDateDateTimeStart Date to filter SPC results.
End DateendDateDateTimeEnd Date to filter SPC results.
SPC ResultssPCResultsSPCResultsSPC Results including data, measurement count and calculated value information.
SPC DatasPCDataDatasetThe SPC data.
Measurement CountmeasurementCountintNumber of measurements in the SPC results. Note that the max number of measurements is 500.
Calculated ValuescalcValuesSPCCalcValueCollectionCalculated value definitions.
Error MessageerrorMessageStringError message.
Warning MessagewarningMessageStringWarning message.

Histogram

NameScriptingProperty TypeDescription
Auto Bar CountautoBarCountbooleanIf true, the number of data bars to include in the histogram results will be automatically calculated.
Data Bar CountdataBarCountInt4If Auto Bar Count is false, the number of data bars to include in the histogram results.
Padding Bar CountpaddingBarCountInt4The number of bars prior to and following the data bars to include in the histogram results.

Event Handlers

Event handlers provide the ability to add custom script when a user interacts with a component.

sPCUpdate

beforeUpdate

Is fired just before SPC results are requested from the SPC module.

PropertyDescription
.sourceThe component that fired this event.

afterUpdate

Is fired just after SPC results are requested from the SPC module.

PropertyDescription
.sourceThe component that fired this event.


Extension Functions

This component does not have extension functions associated with it. 



Custom Methods

Custom methods allow you to add your own component functions to a component that can be called through scripting. This is a useful and clean method of re-using script that is specific to the component (say you want to update a visual aspect of the component in the same way whether a user clicks on the component or a window property value changes). See Component Custom Methods in the Ignition Help Manual for more information.


Customizers

This component does not have any custom properties.


Component Functions

This component provide the following functions that can be called on it. If this component has been dropped onto the windows root container, the path and an example call would be event.source.parent.getComponent('SPC Controller').update().

update()

  • Description

Causes the SPC results to be updated.

  • Parameters

None

  • Return

Nothing

  • Scope

Client

refreshInfo()

  • Description

Causes the sample definition information to be refreshed.

  • Parameters

None

  • Return

Nothing

  • Scope

Client

Sepasoft MES Module Suite