system.mes.batch.queue.syncPLIStepState(batchQueueEntry, path)

Sepasoft MES Module Suite

system.mes.batch.queue.syncPLIStepState(batchQueueEntry, path, changedBy)

Use this function when the State is out of sync with the PLC. Only applies when the State_Transition_Handling parameter is set to PLI.

For more information about the State_Transition_Handling parameter, see State Handling Parameters.

Also see: enableSyncStepState in Batch Controller and Batch Monitor.

First released in:

Warning

MES 3.81.8 SP3 -  Stable Release

  • START - sets the state to RUNNING
  • STOP - sets the state to STOPPED
  • PAUSE - sets the state to PAUSED
  • HOLD - sets the state to HELD
  • ABORT - sets the state to ABORTED
  • RESET - sets the state to IDLE
  • RESTART - sets the state to RUNNING
  • RESUME - sets the state to RUNNING
  • NONE and state = RUNNING - sets state to COMPLETE
  • NONE and state != RUNNING - sets state to IDLE

syncPLIStepState(batchQueueEntry, path, changedBy) → void

Syntax

syncPLIStepState(batchQueueEntry, path, changedBy)

  • Parameters

BatchQueueEntry batchQueueEntry - The BatchQueueEntry object of the batch to sync steps.

String path - The path to the Unit Procedure. Example path: '/{}/P2:up2' 

String changedBy - Associates user actions with parameter changes. 

  • Returns

Nothing

  • Scope

All

Code Example

Python
bqe = system.mes.batch.queue.getEntry('CT-071701') 
system.mes.batch.queue.syncPLIStepState(bqe, '/{}/P2:up2')

Sepasoft MES Module Suite