---
title: "Operations | Create and Schedule a Maintenance Operation 3.0"
id: "create-and-schedule-a-maintenance-operation-3-0"
project: "Knowledge Base"
url: "https://docs.sepasoft.com/articles/knowledge-base/create-and-schedule-a-maintenance-operation-3-0"
updated: 2026-07-23T18:08:31Z
---

# Operations \| Create and Schedule a Maintenance Operation 3\.0

### Create a Schedule a Maintenance Operation

You can skip adding the Trigger Operation Begin if you do not wish for this Operation to Start Automatically on Schedule.
you will then have to right click in the MES Schedule Selector and select "Begin Operation" (in step 7)

Operation details using the **MES Object Editor → Segment Operations**
![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-13-42.png)
* Use these Settings to ensure Automatic Start on Schedule

First, Operation Definition (right click Edit)
![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-17-9.png)

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-15-19.png)
* and Save

Second, Operation Segment
![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-18-42.png)
* Select the Equipment this Operation will run on

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-20-12.png)
and make sure to expand the to the Cells underneath the Line to use the same Mode (here Maintenance)
or another Mode that makes sense in your Operation

Caution, must make sure to modify the Trigger Begin to select Auto !!
![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-23-21.png)
* and Save
* (now) Schedule Operation

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-1-59.png)

Operation details
![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-3-23.png)
* Save
* Result in MES Schedule Selector and Schedule View

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-7-16.png)
* Note the Maintenance Status and the Active State

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-9-39.png)
* As seen in the OEE Time Chart to expand the Line 

![](/resources/Storage/knowledge-base/create-and-schedule-a-maintenance-operation-3-0/image2021-2-18_9-11-48.png)

Note: in case this Operation does not complete this should be done the Operation need to be **ended** not **aborted**

Aborting an Operation stops the Request and restores the Response to Pending, 
in this case it auto starts so the Operation is aborted
then the Schedule is set back to pending, and we auto start it.

This code will end the Operation gracefully (and prevent respawning)

```
eqPath = '<your Equipment Path'
for segment in system.mes.getCurrentSegments(eqPath):
	system.mes.endSegmentWait(segment.getMESObject())
```

#### Related articles

[MES Schedule View](/articles/user-manual/MES-Schedule-View)
[Maintenance Operations Management](/articles/user-manual/Maintenance-Operations-Management)

| Related issues |  |
| --- | --- |