system.recipe.isItemRecipeMonitoringEnabled

Sepasoft MES Module Suite

isItemRecipeMonitoringEnabled

Return recipe value monitoring enabled state. See Recipe Values Settings - Enable Variance Logging for more information.

Syntax

system.recipe.isItemRecipeMonitoringEnabled(itemPath)

  • Parameters

String itemPath - The item path to a production line, cell, cell group or location.

  • Returns

True, if recipe value monitoring is enabled.

  • Scope

All

Python
import sys
import traceback

#---- isItemReciipeMonitoringEnabled ----#
#-- function: system.recipe.isItemReciipeMonitoringEnabled(itemPath)
#                                                           (str)
# itemPath can be any line, cell, cell group or location
#----------------------------------------------------------------------------------------------------------------#
# This function looks at the state of the valueMonitorEnabled tag. This tag is available for every line, cell,   #
# cell group, and location. When you select a recipe and begin a run then you can investigate the current state  #
# of these tags by using this function                                                                           #
#----------------------------------------------------------------------------------------------------------------#
    
#-- required arguments
itemPath = '[global]\Enterprise\New Site\Packaging\packagingLine1'

try:
    state = system.recipe.isItemRecipeMonitoringEnabled(itemPath)
    if state:
        print 'Monitoring is enabled'
    else:
        print 'Enabled is False')
except:
    system.gui.messageBox('Enabled State could not be determined', 'Failed')
    var = traceback.format_exc()    
    system.gui.messageBox(var, 'Error attempting to test monitoring')

Output

Code
Monitoring is enabled

 

 

 

Sepasoft MES Module Suite