Sepasoft MES Module Suite
system.mes.batch.queue.setBatchBOM
When a batch that is based on getBOM is added to the batch queue with this setBatchBOM function that has extra parameter definitions than the Master Recipe (which happens when parameters are removed from the Master Recipe), those extra parameters are ignored.
|
MES 3.81.7 RC 1 and later setBatchBom scripting function added |
|
MES 3.81.8 RC 2 and later Added logic to enforce min/max value when setting values using setBatchBOM. |
Python |
masterRecipeLink = system.mes.batch.recipe.getRecipeLink('Product 1111') batchName = ‘Test Prod 1111’ batchID = ‘WO-53985’ priority = 1 scale = 1.0 quantity = 1 batchQueueEntry = createEntry(masterRecipeLink, batchName, batchID, priority, scale, quantity) print( system.util.jsonEncode(system.mes.batch.queue.setBatchBOM(batchQueueEntry))) |
Returns
Code |
|
Sepasoft MES Module Suite