Sepasoft MES Module Suite
system.mes.spc.controllimit.setControlLimitValue(definition, locationPath, attributeName, limitName, value, [productCode], [date])
Control limits normally are set using the control charts components and when the process is determined to be stable. In cases where additional flexibility is required, this scripting function is provided.
Syntax
system.mes.spc.controllimit.setControlLimitValue(definition, locationPath, attributeName, limitName, value, [productCode], [date])
Parameters
- definition
: MESSampleDefinitionThe sample definition object that contains the limit value being set. - locationPath
: StringPath of the location that the limit value is being set. - attributeName
: StringName of the attribute that the limit value is being set. - limitName
: StringName of the limit to set the value. - value
: DoubleThe new limit value. - productCode
: StringThe product code that the limit value is being set. This only applies if the Save Control Limits by Product Code option is selected. - date
: DateThe time to set the control limit for.
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 date = system.date.addDays(system.date.now(),-1) system.mes.spc.controllimit.setControlLimitValue(definition, locationPath, attributeName, limitName, 3.2, productCode, date) |
Sepasoft MES Module Suite