system.mes.spc.controllimit.removeControlLimitValue(definition, [locationPath], [attributeName], [limitName], [productCode], [fromDate], [toDate])

Sepasoft MES Module Suite

Sample Definition

system.mes.spc.controllimit.removeControlLimitValue(definition, [locationPath], [attributeName], [limitName], [productCode], [fromDate], [toDate])

This function accepts keyword arguments.

Removes a previously set control limit value.

Syntax

system.mes.spc.controllimit.removeControlLimitValue(definition, [locationPath], [attributeName], [limitName], [productCode], [fromDate], [toDate])

  • Parameters

MESSampleDefinition definition - The sample definition object that contains the limit value being removed.

String locationPath - The path of the location that the limit value is being removed.

String attributeName - The name of the attribute that the limit value is being removed.

String limitName - The name of the limit to remove the value.

String productCode - The product code that the limit value is being removed. If this parameter is not specified, then all control limit values will be removed.

Date fromDate - Control limit values in effect after this date will be removed.

Date toDate - Control limit values in effect before this date will be removed.

  • Returns

Nothing

Code Example

Python
definition = system.mes.spc.definition.getSampleDefinition('Single Attribute')
locationPath = 'Enterprise\El Dorado Hills\Packaging Area\Packaging Line 1\Inspection Station 1'
attributeName = 'Diameter'
limitName = 'Individual UCL'
productCode = None
fromDate = system.date.addDays(system.date.now(),-1)
toDate = system.date.now()
system.mes.spc.controllimit.removeControlLimitValue(definition, locationPath, attributeName, limitName, productCode, fromDate, toDate)



Sepasoft MES Module Suite