Active Step | Skip Step

Sepasoft MES Module Suite

Batch Procedure: Active Step and Skip Step Functionality

Success Active Step | Skip Step is available in 3.81.12 RC3 and later.

Transcript

00:00:05:00 - 00:00:29:16
Unknown
Have you ever had that awful sinking feeling when you realize something's gone wrong in a live batch process? Well, today we're diving into something pretty amazing called active Step Change. It's a new capability that's all about giving you the operator, the power to step in and save that batch. Even when things go sideways. So let me just start with a question that could honestly change everything about how you look at your processes.

00:00:29:18 - 00:00:52:17
Unknown
Picture this you're right in the middle of a live batch. Everything's on the line and you spot a mistake from a previous step. What if, instead of just watching a super expensive failure unfold, you could just hit a rewind button and fix it right then and there? Because let's face it, that's the reality for so many, right? A tiny deviation in temperature, a small miscalculation in an ingredient.

00:00:52:22 - 00:01:14:06
Unknown
These little things can force you to scrap an entire batch. We're talking about taking that massive, costly failure and turning it into a simple routine correction. It's a huge shift that saves product, saves time, and you guessed it saves a lot of money. So how in the world do you actually do that? How do you take back control when a live batch starts to go off the rails?

00:01:14:08 - 00:01:35:02
Unknown
Well, the key to all of this lies in one powerful gateway that unlocks the whole thing manual mode. Okay, let's break this down. The best way to think about manual mode is like a service panel for your batch process. It's not for your normal day to day stuff. Nope. This is the mode you switch into when you, the operator, need to step in and grab the controls.

00:01:35:04 - 00:01:56:11
Unknown
You're literally taking the wheel of the process. This slide right here really lays out the core difference in auto mode. The system's just on autopilot. You know, it's following the recipe it was given. But when you flip into manual mode, that control shifts completely to you. The system basically hits pause and just waits. It waits for your direct commands.

00:01:56:14 - 00:02:17:00
Unknown
And that's exactly what makes this kind of intervention possible. Okay, so we're in manual mode now for the main event. Let's talk about actually changing the active step. We're going to get into the nitty gritty of how this really works. Now before you can just jump in and start making changes the system has four really important safeguards. Think of them as rules of the road.

00:02:17:05 - 00:02:34:16
Unknown
First, the batch obviously has to be running. Second, as we said, you've got to be in manual mode. Third, it can't be in semi-auto mode. That's kind of a mix of both. And last and this is crucial, the current step has to be in a terminal state which just means it's either finished stopped or aborted. You can't change course while the car is still moving, right?

00:02:34:17 - 00:02:54:00
Unknown
Same idea. So for a simple linear process, you know, step A, then B, then C, you can easily jump back to repeat a step, or you can leap forward to skip one. And the same logic works for more complex recipes that have loops. You can choose to rerun a step inside that loop. Or hey, maybe you need to break out of the loop entirely and get to a later stage.

00:02:54:04 - 00:03:18:03
Unknown
You can do that too. But now let's get into where this functionality truly becomes a superstar. Managing parallel paths. This is when you've got multiple process lines all running at the same time. And believe me, this is where this level of control is just incredibly powerful. This slide is the perfect example. Just imagine you've got three parallel lines running like a and legacy are humming along just fine.

00:03:18:03 - 00:03:40:13
Unknown
No problems. But, oh. Leg B is showing a viscosity issue. Now, in the past, that one problem might have forced you to shut down the whole operation, but now you don't have to stop everything. You can pause and fix just the problem leg like B in this case, while the other two just keep on running. The key here is that you only need to stop that single leg to make a change within it.

00:03:40:15 - 00:04:00:18
Unknown
It's only if you need to make a change that impacts the entire parallel block, that all the legs need to be finished. And get this the control doesn't just stop at fixing current problems while you're in manual mode taking care of an issue. You can also proactively manage what's coming next. For example, you can tell the system hey, when you get to step seven later on, just skip it.

00:04:00:19 - 00:04:21:12
Unknown
You're basically programing a future action while you're taking care of a present one. How cool is that? So we've talked about the theory. Now let's see what this looks like when the rubber meets the road. How would you actually use these tools to save a batch that's in trouble? Here is the operator's playbook. Okay. An operator spots a viscosity issue right after a mixing step.

00:04:21:15 - 00:04:42:11
Unknown
What do they do? It's a simple five step process. One. They spot the problem. Two, they switch into manual mode. Three they make sure the current step is stopped. Four they use the change active step feature to go back and rerun that mixing step. And five they pop it back into auto mode and that's it. The system takes over, fixes the problem, and the batch is saved.

00:04:42:12 - 00:05:05:17
Unknown
It's simple, it's effective, and it's direct. And that's why this is such a big deal. That simple five step intervention could save a batch worth tens, maybe even hundreds of thousands of dollars. Now, let's zoom out for a second and think about the new philosophy of control that this really enables. This kind of dynamic control absolutely changes the game for process optimization.

00:05:05:19 - 00:05:25:10
Unknown
It's not about reacting to problems after the damage is already done. No, this is about having the power to proactively solve issues as they're happening in real time. It's a fundamental shift from a reactive to a proactive mindset. I must be super clear about the bottom line here. This isn't just some nice to have feature that makes an operator's job a little easier.

00:05:25:15 - 00:05:45:02
Unknown
This is a tool with a direct, a significant and a very measurable financial impact. It saves product that would have otherwise been completely lost. So we'll leave you with this question to think about. This technology is about so much more than just fixing mistakes. It's about giving you the power to actively intervene and optimize your processes on the fly.

00:05:45:04 - 00:05:49:02
Unknown
So with this kind of control at your fingertips, what will you optimize first?


The Active Step and Skip Control functionality provides a powerful set of intervention tools for batch operators, empowering them to respond effectively to process deviations during live execution. The core business value of this feature is the ability to save a batch when things don't go exactly as planned. What might have previously been a costly failure can now be addressed with a routine correction, such as repeating a mixing step to adjust product viscosity. This direct control enhances process flexibility, reduces waste, and can prevent the loss of an entire product batch.

The foundational gateway to all of these advanced capabilities is Manual Mode. It is the essential state that unlocks the ability for an operator to step in and directly alter the execution path of a running batch.

In this topic:


For reference about the Command-States, see Batch Command Life Cycle.

Understanding Manual Mode in Batch Execution

Manual Mode is the essential prerequisite for enabling dynamic step changes in a batch process. It is best understood as a "service panel for your batch process"—a state intended for direct intervention when an operator needs to take control.

Logic Items and Modes

The system defines specific hierarchical elements and the modes that can be assigned to them.

  • Auto:  batch engine runs the command sequence.
  • Semi-Auto: phases run as in Auto; Transitions evaluate but do not allow the batch to continue without operator input.
  • Manual: operator controls the commands.
Success Default State: By default, all Logic Items are in Auto mode.

Updated Mode Propagation Logic

When the mode of a Logic Item is changed, the system's behavior for propagating that change up or down the process hierarchy is now controlled by specific parameter settings. This provides granular, bi-directional control over how mode changes are applied.  

Propagate Properties

Two properties provide granular, bi-directional control over how Logic Mode changes are propagated.

Property Name

Functional Description

Propagate_Mode_To_Children

(Applies to Procedures & Unit Procedures) When enabled, any Logic Mode change made to a parent Logic Item will automatically cascade down to its child logic items. This can propagate from a Procedure all the way down to Operations if the setting is enabled on each parent.

Propagate_Mode_To_Parent

(Applies to Unit Procedures & Operations) When enabled, a Logic Mode change at a child level will propagate up to its direct parent. This allows a change at the Operation level to propagate all the way up to the Procedure if the setting is enabled at each level.

Success

Backwards Compatibility for Batch Recipes created before 3.81.12 RC3.

It is important to note the rule for recipes created before this update: because the Propagate_Mode_To_Children and Propagate_Mode_To_Parent parameters do not exist in older recipes, mode propagation will instead depend on the global "Batch Recipe Settings" configured on the Enterprise equipment using the Perspective Equipment Manager.

With a clear understanding of the prerequisites for Manual Mode, we can now explore the core function of changing an active step.

Using Active Step | Skip Step

Changing the active step is governed by a strict set of rules that function as essential safeguards, ensuring process integrity and product safety when making powerful, live interventions.

Manually set actions in the Batch Monitor component. For component properties, see Batch Recipe Monitor Component Properties


Prerequisites for Changing an Active Step

Before an operator can change the active step, four mandatory conditions must be met:

  • Running Batch: The batch must be running state.. This function is not available for batches in an idle, completed, paused, held, stopped, or aborted state.

  • Manual Mode: The specific logic hierarchy (e.g., Procedure, Unit Procedure) containing the step you wish to modify must be in Manual mode.

  • Not in Semi-Automatic Mode: Active steps cannot be changed when in semi-automatic mode.

  • Inactive State: The phase associated with the current active step must be in an inactive or terminal state (Idle, Aborted, Stopped, or Complete) before a new step can be selected. The operator is responsible for bringing the phase to this state, either by letting it complete normally or by stopping or aborting the associated action.

Execution Scenarios

The process for changing an active step varies depending on the structure of the batch recipe.

Serial Path

This is the most straightforward scenario. In a simple sequence of steps, an operator can move backward to repeat a previously completed step or move forward to skip an upcoming step. For example, if a step P2 is complete and the batch is waiting on the next transition, the active step can be changed back to P2 to repeat it, or forward to P4 or P6 to skip ahead. The only requirements are that the parent logic is in Manual Mode and the current phase is in an inactive or terminal state.

Loopbacks

Loopbacks are handled similarly to serial paths. Once the logic is in Manual Mode and the current phase is in an inactive or terminal state, the operator has several options. For example, if the batch is executing a step P10 inside a loop, the operator can:

  • Select a new active step within the loop, such as P4 or P8, even if it has already been executed.

  • Select a step that occurs before the loop began, such as P2.

  • Select a step that occurs after the loop is scheduled to finish, such as P15 or P16.

Parallel Paths

This scenario provides immense flexibility, allowing operators to correct or repeat a step in one parallel process leg without halting the others, maximizing efficiency even during interventions. This flexibility is governed by a clear framework of rules to maintain process integrity. There are two distinct types of changes an operator can make:

  • Manipulating a Step Within an Active Parallel Path: An operator can change the active step for any individual leg of a parallel process, provided that the active phase in that leg is brought to an inactive or terminal state first. For example, if a step P23 in one leg needs to be repeated, the operator can re-select P23 as the active step, all while other parallel legs continue to run.

  • Changing the Primary Path Outside the Parallel Block: To change the primary execution path (e.g., to repeat the entire parallel block or to skip ahead to a step after it), all individual paths within the block must first be in terminal states. For example, if a parallel block contains paths ending in steps P23, P5, and P22, all three of these steps must be complete, stopped, or aborted before the operator can select a new active step outside of that block. The transition immediately after the And_End step may also be manually skipped to “exit” the Parallel Block. This ensures the entire parallel operation is resolved before the main sequence is altered.

With a firm grasp of how to change the active step, we can now explore other advanced control features, such as proactively skipping future steps.

Advanced Control Features: Skipping Future Steps

The "Skip Steps" feature is a complementary function that provides operators with finer, proactive control over the batch execution path. While in Manual mode to address a current issue, an operator can designate future steps to be bypassed once the process is returned to automated control.

Mechanism and Behavior

The core mechanics of this feature are straightforward and intentional:

The "Skip Steps" feature provides the ability to bypass specific steps during a process run. This functionality is also governed by the Manual Logic Mode.

  • Requirement: A Logic Item must be in Manual mode before any of its steps can be configured to be skipped.

  • Mechanism: To mark a step for skipping, the user deselects the "Execute Step" checkbox on the step's interface. This option is checked by default.

  • Execution Behavior: After configuring the desired steps to skip, the Logic Mode can be changed back to Auto or Semi-Auto. During sequential execution, any step with a deselected "Execute Step" checkbox will be bypassed.

  • Automatic Reset Behavior: Once a step is skipped, its "Execute Step" checkbox is automatically re-checked. Consequently, a user must re-enter Manual mode each time they wish to skip a step in a subsequent cycle (such as in a loopback), as this behavior intentionally prevents a step from being permanently or accidentally set to be skipped.

    Traceability

    For regulatory compliance and process analysis, every decision to skip a step is fully traceable. This action is controlled by the Execute_Step phase parameter, and the event is recorded in the Electronic Batch Record (EBR).

    The next section shifts focus from the functional logic to the user interface elements that enable these powerful controls.

    Active Step | Skip Step User Interface

    This section serves as a visual reference guide for the new features within the Batch Monitor and Batch Controller components. These interfaces have been updated with specific icons and color codes to support the new step change functionalities.

    Batch Monitor Component

    Icons

    Two new icons appear on steps when the associated logic is in Manual Mode to control active step changes.

    Icon

    Description

    Include Step Icon

    A checkbox that controls whether a step will be executed. By default, all steps are set to execute. Unchecking this checkbox toggles the step to be skipped. This setting only takes effect when the process is returned to Auto mode.


    Set as Active Step

    A green arrow icon allows you to set a step as the active step in the recipe. 


    Clicking this icon on a step designates it as the new active step. Only one step within an execution path can be selected at a time. This allows you to repeat previous steps or skip ahead to future ones. If a step is not eligible to be changed to as an active step, based on where the recipe is currently executing in the logic engine, the Change Step Icon will be hidden.


    Batch Monitor Component Properties | Set in Ignition Designer


    Set these properties in the Batch Monitor component within Ignition Designer:

    Property Name

    Description (Tooltip Text)

    Type

    Default Value

    enableChangeActiveSteps

    Enables permission for the Change Active Step icons to be shown, when applicable.

    Boolean

    False

    enableSkipSteps

    Enables the permission for the “Execute Step” checkbox to be shown on all applicable steps.

    Boolean

    False

    Batch Controller Component

    Note Limitation: Changing the active step or skipping steps is not supported in the Batch Controller component because of the complexity of navigating parallel paths in this view. All step change actions must be performed from the Batch Recipe Monitor. Now, see how these features come together in a real-world scenario.

    Practical Application: A Real-World Use Case

    This section demonstrates the significant financial and operational value of the active step change feature through a common real-world scenario: repeating a mixing step to correct product quality and save a batch from being discarded.

    Playbook: Correcting Product Viscosity

    An operator is monitoring a batch and observes that the product viscosity is too high after a mixing step, likely due to a variation in raw material quality. Without the ability to intervene, this batch would be lost. Using the Active Step functionality, the operator can take the following steps:

    1. Identify the Problem: The operator confirms that the product is not fully mixed and requires additional mixing time.

    2. Enter Manual Mode: The operator places the relevant Unit Procedure containing the mixing step into Manual mode.

    3. Prepare for Step Change: The operator ensures the currently active phase is brought to a terminal state (e.g., by stopping the downstream transfer action).

    4. Select the New Active Step: Using the "Change Active Step" button in the Batch Recipe Monitor, the operator navigates back in the sequence and selects the mixing step to be repeated.  The mixing step will begin executing immediately after clicking the “Change Active Step” button.

    5. Resume Operation: The operator now has two options. They can either return the unit to Auto mode, allowing the recipe to continue normally after the repeated mixing is complete, or they can keep the unit in Manual mode, wait for the mixing step to finish, and then manually change the active step back to the point where the deviation was first identified.

    This sequence of actions, enabled by the new active step change functionality, directly prevented the loss of the product batch, demonstrating the significant value of this feature in a production environment.

    Active Step | Skip Step in Scripting

    For programmatic control over step execution, new script methods have been added to the system.mes.batch.queue library. These functions provide a powerful alternative to the user interface for managing the active step within a batch process.


    The new methods are:

    • system.mes.batch.queue.changeActiveStep(batchQueueEntry, path, [changedBy])

    • system.mes.batch.queue.getValidNextSteps(batchQueueEntry, [path])

    • system.mes.batch.queue.getActiveSteps(batchQueueEntry, [path])

    While these scripting functions offer flexibility, the Batch Recipe Monitor Perspective component is the recommended method for most applications to ensure ease of use, consistency, and the best overall user experience.



    Sepasoft MES Module Suite