> For the complete documentation index, see [llms.txt](https://infosys.selmotech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infosys.selmotech.com/selmo-solution/selmo-solution-en/selmo-documentation/11-reference/examples/example-ptf-for-start-button-and-cylinder.md).

# Example: PTF for start button and cylinder

This example shows how the **Selmo method (PTF)** is applied before a sequence is modeled or programmed.

The example is deliberately simple:

* a **Start button**
* a **Cylinder with two end positions**

The goal is not the modeling, but the **structured thinking before the model**.

***

### P – Process

#### Domain process

From a domain perspective the following should happen:

1. The operator presses the start button
2. The cylinder extends
3. The cylinder reaches its front end position
4. The operation is completed

The process describes:

* **what** what happens
* **in which order**
* **without technical details**

It describes **not**:

* how the cylinder is actuated
* which sensors are used
* how long the movement takes

> **Process = domain sequence, independent of technology.**

***

#### Process boundaries

The process includes:

* Start request by the operator
* Movement of the cylinder
* Reaching the target position

Not part of the process:

* Power supply
* Emergency stop
* mechanical design
* maintenance

***

### T – Technology

#### Technology used

The following technology is used for the process:

* a pneumatic cylinder
* a solenoid valve for actuation
* two end position sensors:
  * retracted
  * extended
* an electrical start button

***

#### Technological characteristics and boundary conditions

The following facts arise from the technology:

* the cylinder can **not simultaneously** be retracted and extended
* the cylinder requires energy (compressed air)
* the movement is **not instantaneous**
* the end position sensors provide binary signals
* the start button is a momentary signal

These characteristics are **not negotiable**, but physically given.

> **Technology describes what is physically possible.**

***

#### Technological risks

* Valve defective → cylinder does not move
* Sensor defective → end position is reported incorrectly
* No compressed air → movement does not occur

These risks must be monitored later, but are **not yet modeled here**.

***

### F – Function

#### Derived functions

From process **and** technology the following functions can be formulated:

1. **Detect start request**\
   Movement may only occur after a deliberate start request.
2. **extend cylinder**\
   After a valid start request the cylinder should extend.
3. **Monitor end position**\
   The movement is only considered complete when the front end position is reached.
4. **Detect impossible states**\
   The two end position sensors must not be active at the same time.

***

#### Functions as verifiable statements

Important: Functions are **no states** and **not an implementation**.

Examples of correctly formulated functions:

* "The cylinder may only extend if a start request is present."
* "The cylinder is considered extended when the front end position is active."
* "Both end position sensors must not be active at the same time."

These statements are:

* verifiably
* unambiguously
* technologically justified

***

### Result of the PTF

After completion of the PTF it is clear:

* **which sequence** is to be modeled
* **which technology** is involved
* **which functions are strictly necessary**

This creates the prerequisite for:

* meaningful states
* clear sequences
* correct zones
* clean monitoring

> **Modeling only begins now.**

***

### Transition to the Selmo model

Only on the basis of this PTF are defined:

* States (e.g. "Waiting for start", "Cylinder moving", "Cylinder extended")
* Zones (start button, cylinder)
* Monitoring (end position, pair-check)
* Sequence and behavior

> **PTF decides&#x20;*****what*****&#x20;is modeled.**\
> **Selmo decides&#x20;*****how*****&#x20;it is described formally.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://infosys.selmotech.com/selmo-solution/selmo-solution-en/selmo-documentation/11-reference/examples/example-ptf-for-start-button-and-cylinder.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
