---
title: "system.mes.beginSegment"
id: "system-mes-beginsegment"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/system-mes-beginsegment"
updated: 2026-07-31T14:58:01Z
---

# system\.mes\.beginSegment

**Sepasoft MES Module Suite**

### **system.mes.beginSegment(responseSegment)**

Begin the specified response segment.

Syntax

system.mes.beginSegment(responseSegment)

* Parameters

[MESResponseSegment](/articles/user-manual/response-segment)  **responseSegment** - The MES object to begin. All required property values must be set prior to beginning.

* Returns

Nothing

* Scope

All


```python
#Get the current operation
oper = system.mes.getCurrentOperation('Dressings Inc\California\Raw Materials\Unload Station 1')

#Create a segment for the current operation
seg = oper.createSegment('Unload Balsamic Vinegar')
#Set material
seg.setMaterial('Vinegar', 'Balsamic Vinegar', 'Dressings Inc\California\Raw Materials\Tank Farm\Vinegar Tank 1', 'TBV 1127', 100.0)
#Set personnel
seg.setPersonnel('Operator', 'Hechtman, Tom')
#Begin the segment
system.mes.beginSegment(seg)
```


**Sepasoft MES Module Suite**