system.mes.createOperation

Sepasoft MES Module Suite

system.mes.createOperation

These script functions are used to create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

system.mes.createOperation(operationsDefinition)

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

Syntax

system.mes.createOperation(operationsDefinition)

Parameters

MESOperationsDefinition operationsDefinition - The operations definition to base the operations response on.

Returns

A new MESOperationsResponse object.

Scope

All

Python
#This code will create a new operation for the specified equipment
eqPath = '[global]\My Enterprise\California\Receiving\Unload Station 2'
operResp = system.mes.createOperation('Receive Turkeys', eqPath, True)

##Typically the user would begin the operations response at this time.
operResp.begin()

system.mes.createOperation(operationsDefinitionName, equipmentPath)

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation. Auto assign options are set to true in this overloaded method

Syntax

system.mes.createOperation(operationsDefinitionName, equipmentPath)

Parameters

String operationsDefinitionName - The name of the operations definition to base the operations response on.

String  equipmentPath - Equipment path of where it will be run.

  • Returns

A new MESOperationsResponse object.

  • Scope

All

Python
#This code will create a new operation for the specified equipment
eqPath = '[global]\My Enterprise\California\Receiving\Unload Station 2'
operResp = system.mes.createOperation('Receive Turkeys', eqPath, True)

##Typically the user would begin the operations response at this time.
operResp.begin()

system.mes.createOperation(operationsDefinitionName, equipmentPath, ignoreVersion)

Create a new MESOperationsResponse from the specified operations definition. This is done to create a new instance of a MESOperationsSegment object needed to begin an operation.

Syntax

system.mes.createOperation(operationsDefinitionName, equipmentPath, ignoreVersion)

Parameters

String operationsDefinitionName - The name of the operations definition to base the operations response on.

String  equipmentPath - Equipment path of where it will be run.

boolean  ignoreVersion - If true, ignore the checking if the operations definition MES object has a new version number and just use the last operation version that was created.

Returns

A new MESOperationsResponse object.

Scope

All

Python
#This code will create a new operation for the specified equipment
eqPath = '[global]\My Enterprise\California\Receiving\Unload Station 2'
operResp = system.mes.createOperation('Receive Turkeys', eqPath, True)

##Typically the user would begin the operations response at this time.
operResp.begin()

Sepasoft MES Module Suite