Contents
Strategic Partner Links
Sepasoft - MES Modules
Cirrus Link - MQTT Modules
Resources
Knowledge Base Articles
Inductive University
Forum
IA Support
SDK Documentation
SDK Examples
Cancels the execution of a running chart instance. Any running steps will be told to stop, and the chart will enter Canceling state.
Permission Type: SFC Management
Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.
system.sfc.cancelChart(id)
id -The ID of the chart instance to cancel
Nothing
All
Will throw a KeyError if the ID does not match any running chart instance.
# The following will attempt to stop an SFC but will alert the user if the id of the chart is not currently running id = 'Some long string value obtained from earlier in the script' try: system.sfc.cancelChart(id) except: system.gui.messageBox("Could not stop the SFC")