Control Limit Event

Sepasoft MES Module Suite

Control Limit Events

The event is executed to calculate a control limit value. Whenever control limits are calculated, the script in the associated control limit is executed. All control limit events have getData() function to return the SPC data. 

Example

The following code snippet logs the column names of the dataset returned by Individual LCL control limit.

Code Snippet

Python
ds = event.getData()
logger = system.util.getLogger('Individual LCL')
#logs column names to the gateway console
logger.info(str(ds.getColumnNames()))

Output

Python
[Date Time, Measurement 1, XBar, XDBar, MR, MRBar, Individual LCL, Individual UCL, SampleUUID, Note, Cause]

System is set to use up to 6 decimal point places for Control Limit Values: When calculating control limits the system uses the Attribute Property format property to determine how to display the limit value (i.e., how many digits after the decimal to use if the control limit calculated value is of a decimal value)

Column Names Corresponding to Control Limits

Column names of the dataset returned by event.getData() corresponding to each chart is given below.

Control LimitsColumn Names
Box and Whisker LCLLocation, ProductCode, AttrValue, SampleUUID, Note, Cause
Box and Whisker UCLLocation, ProductCode, AttrValue, SampleUUID, Note, Cause
Cp LSLDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
Cp TargetDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
Cp USLDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
CpPp LSLDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, CpLCL, CpUCL, CpStdDev, Pp, Ppk, Pr, Ppm, Ppl, Ppu, PpLCL, PpUCL, PpStdDev, Mean, SampleUUID, Note, Cause
CpPp TargetDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, CpLCL, CpUCL, CpStdDev, Pp, Ppk, Pr, Ppm, Ppl, Ppu, PpLCL, PpUCL, PpStdDev, Mean, SampleUUID, Note, Cause
CpPp USLDate Time, Measurement, Low Boundary, High Boundary, Frequency, Cp, Cpk, Cr, Cpm, Cpl, Cpu, CpLCL, CpUCL, CpStdDev, Pp, Ppk, Pr, Ppm, Ppl, Ppu, PpLCL, PpUCL, PpStdDev, Mean, SampleUUID, Note, Cause
Histogram LCLLow Boundary, High Boundary, Frequency, SampleUUID, Note, Cause
Histogram UCLLow Boundary, High Boundary, Frequency, SampleUUID, Note, Cause
Individual LCLDate Time, Measurement, XBar, XDBar, MR, MRBar, SampleUUID, Note, Cause
Individual UCLDate Time, Measurement, XBar, XDBar, MR, MRBar, SampleUUID, Note, Cause
MR LCL

Date Time, Measurement, XBar, XDBar, MR, MRBar, SampleUUID, Note, Cause

MR UCL

Date Time, Measurement, XBar, XDBar, MR, MRBar, SampleUUID, Note, Cause

Median LCLDate Time, Measurement, Low, High, Median, MedianBar, Range, RBar, SampleUUID, Note, Cause
Median UCLDate Time, Measurement, Low, High, Median, MedianBar, Range, RBar, SampleUUID, Note, Cause
Pp LSLLow Boundary, High Boundary, Frequency, Pp, Ppk, Pr, Ppm, Ppl, Ppu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
Pp TargetLow Boundary, High Boundary, Frequency, Pp, Ppk, Pr, Ppm, Ppl, Ppu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
Pp USLLow Boundary, High Boundary, Frequency, Pp, Ppk, Pr, Ppm, Ppl, Ppu, Mean, LCL, UCL, StdDev, SampleUUID, Note, Cause
Range LCLMedian or XBar chart can be used with this control limit. The column names will be according to the chart you used. If you select XBar then the column names will be same as XBar and if you choose Median the column names will be same as Median.
Range UCLMedian or XBar chart can be used with this control limit. The column names will be according to the chart you used. If you select XBar then the column names will be same as XBar and if you choose Median the column names will be same as Median.
StdDev LCLIndividual or XBar chart can be used with this control limit. The column names will be according to the chart you used. If you select XBar then the column names will be same as XBar and if you choose Individual the column names will be same as Individual.
StdDev UCLIndividual or XBar chart can be used with this control limit. The column names will be according to the chart you used. If you select XBar then the column names will be same as XBar and if you choose Individual the column names will be same as Individual.
XBar LCLDate Time, Measurement, Sum, XBar, XDBar, Range, RBar, SampleUUID, Note, Cause
XBar LSLDate Time, Measurement, Sum, XBar, XDBar, Range, RBar, SampleUUID, Note, Cause
XBar UCLDate Time, Measurement, Sum, XBar, XDBar, Range, RBar, SampleUUID, Note, Cause
XBar USLDate Time, Measurement, Sum, XBar, XDBar, Range, RBar, SampleUUID, Note, Cause
c LCLTotal Nonconformities, InspectedCount, c, cBar, SampleUUID, Note, Cause
c UCLTotal Nonconformities, InspectedCount, c, cBar, SampleUUID, Note, Cause
np LCLTotal Nonconforming, InspectedCount, np, npBar, SampleUUID, Note, Cause
np UCLTotal Nonconforming, InspectedCount, np, npBar, SampleUUID, Note, Cause
p LCLDate Time, Measurement, Total Nonconforming, InspectedCount, p, pBar, SampleUUID, Note, Cause
p UCLDate Time, Measurement, Total Nonconforming, InspectedCount, p, pBar, SampleUUID, Note, Cause
u LCLDate Time, Measurement, Total Nonconformities, InspectedCount, u, uBar, SampleUUID, Note, Cause
u UCLDate Time, Measurement, Total Nonconformities, InspectedCount, u, uBar, SampleUUID, Note, Cause

Object Functions

getAttributeName()

Description

 Returns the attribute name within the definition to set the control limit for.

Syntax

getAttributeName()


  • Parameters

None

  • Returns

String attributeName - The attribute name of the control limit.

  • Scope

All

getCalcValues()

Description

 Returns the value information of the control limit.

Syntax

getCalcValues()


  • Parameters

None

  • Returns

SPCCalcValueCollection calcValues - The calculated value of the control limit.

  • Scope

All

Code Examples

Code Snippet

Code
list = event.getCalcValues()
logger = system.util.getLogger('Calc Values')
logger.info(list.getCalcValueInfo().get(0).getName())

Output

Code
XBar

getControlLimitName()

Description

 Returns the name of the control limit.

Syntax

getControlLimitName()


  • Parameters

None

  • Returns

String controlLimitName - The name of the control limit.

  • Scope

All

getControlLimitValue()

Description

 Returns the value of the control limit.

Syntax

getControlLimitValue()


  • Parameters

None

  • Returns

Double controlLimitValue - The value of the control limit.

  • Scope

All

getData()

Description

 Returns the SPC data.

Syntax

getData()


  • Parameters

None

  • Returns

 AnalysisDataset data - The SPC data.

  • Scope

All

getSampleSize()

Description

 Returns the sample size.

Syntax

getSampleSize()


  • Parameters

None

  • Returns

Integer sampleSize - The sample size associated with this control limit.

  • Scope

All

setControlLimitValue(controlLimitValue)

Description

 Sets the control limit value.

Syntax

setControlLimitValue(controlLimitValue)


  • Parameters

Double controlLimitValue - The value of the control limit.

  • Returns

Nothing

  • Scope

All

setValue(rowIndex, columnIndex, value)

Description

 Sets the value in the SPC data at the specified rowIndex and columnIndex.

Syntax

setValue(rowIndex, columnIndex, value)


  • Parameters

None

  • Returns

AnalysisDataset data - The SPC data.

  • Scope

All

Sepasoft MES Module Suite