> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-nonlinear-and-delay/h-s-with-limit-and-reset.md).

# H(s) with Limit and Reset

## Description

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-a5e821473ce4281c07ee94c55ba27b0cb423eb74%2Fimage%20(641).png?alt=media" alt="" width="164"><figcaption></figcaption></figure>

The **S transfer function H(s) with dynamic limit** block, located in the **Control Nonlinear & Delay** library, outputs the signal u, where $$u(s)=H(s) \times y(s)$$

$$
H(s) = \frac{a\_0+a\_1.s+a\_2.s^2+... a\_n.s^n}{b\_0+b\_1.s+b\_2.s^2+... b\_m.s^m}
$$

y is limited by the parameters Lim1 and Lim2.

## Mask parameters

<figure><img src="https://3623212549-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLxgTpoh7kyPmQ5vuyqD7%2Fuploads%2Fgit-blob-caaec26db960e7500ada6456c0d8401bfedc5bf9%2Fimage%20(642).png?alt=media" alt="" width="512"><figcaption></figcaption></figure>

| Parameter                          | Description                                                                             |
| ---------------------------------- | --------------------------------------------------------------------------------------- |
| **Reset trigger type**             | 3 options, Rising edge, Falling edge and Both                                           |
| **Lim1**                           | Limit the y value                                                                       |
| **Lim2**                           | Limit the y value                                                                       |
| **Numerator - Polynomial order**   | Number n, maximum value 19                                                              |
| **Denominator - Polynomial order** | Number m, maximum value 19                                                              |
| **Coefficients**                   | <p>a0, a1, ...,an numerator coefficients<br>b0, b1, ...,bm denominator coefficients</p> |

## Inputs

| Input     | Description                                   |
| --------- | --------------------------------------------- |
| **u**     | Input signal.                                 |
| **reset** | reset signal                                  |
| **init**  | To specify the integrator initial conditions. |

## Outputs

| Output    | Description                                                                                                                              |
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| **y**     | Output signal.                                                                                                                           |
| **state** | <p>3 states indicate:<br>1 the higher limit is being applied<br>0 the integral is not limited<br>-1 the lower limit is being applied</p> |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/hypersim/library-blocks-reference/control-nonlinear-and-delay/h-s-with-limit-and-reset.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
