system.mes.oee.verifyProductionSettings

Sepasoft MES Module Suite

Overview

These script functions are used to verify the production settings.

Method options: 

system.mes.oee.verifyProductionSettings(processSegment)

Description

Verify production settings for the segment object. If the equipment item of the segment object is a line item and production settings properties corresponding to the line item and its descendant equipment items are not set, then default production settings properties corresponding to the equipment items will be set.

Syntax

system.mes.oee.verifyProductionSettings(processSegment)


  • Parameters

MESProcessSegment processSegment - The process segment object.

  • Returns

The process segment object.

  • Scope

All

Code Examples

Code Snippet

Code
segment = system.mes.createMESObject('OperationsSegment')
# Put an existing line's UUID on your system.
lineLink = system.mes.getMESObjectLink('Line', '766842a8-e194-4538-aa0e-f92a515314d0') 
equipProp = segment.createComplexProperty('Equipment', 'Station')
equipProp.setEquipmentRef(lineLink)
segment = system.mes.oee.verifyProductionSettings(segment)
count = segment.getComplexPropertyCount('ProductionSettings')
for index in range(0, count):
	prop = segment.getComplexProperty('ProductionSettings', index)
	if prop.isEnabled():
		print segment.getComplexProperty('ProductionSettings', index)

system.mes.oee.verifyProductionSettings(operationsSegment)

Description

Verify production settings for the segment object. If the equipment item of the segment object is a line item and production settings properties corresponding to the line item and its descendant equipment items are not set, then default production settings properties corresponding to the equipment items will be set.

Syntax

system.mes.oee.verifyProductionSettings(operationsSegment)


  • Parameters

MESOperationsSegment operationsSegment - The operations segment object.

  • Returns

The operations segment object.

  • Scope

All

Code Examples

Code Snippet

Code
segment = system.mes.createMESObject('OperationsSegment')
# Put an existing line's UUID on your system.
lineLink = system.mes.getMESObjectLink('Line', '766842a8-e194-4538-aa0e-f92a515314d0') 
equipProp = segment.createComplexProperty('Equipment', 'Station')
equipProp.setEquipmentRef(lineLink)
segment = system.mes.oee.verifyProductionSettings(segment)
count = segment.getComplexPropertyCount('ProductionSettings')
for index in range(0, count):
	prop = segment.getComplexProperty('ProductionSettings', index)
	if prop.isEnabled():
		print segment.getComplexProperty('ProductionSettings', index)

Sepasoft MES Module Suite