> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/binary/absb.md).

# AbsB

## `AbsB` (FB)

FUNCTION\_BLOCK AbsB

### Short description

> Anti-block protection for a binary signal

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-d423f7467754189eebed551529f513f77b198963%2FAbsB_FB.png?alt=media" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Inputs

| Name  | Data type | Value range | Initial value | Function            |
| ----- | --------- | ----------- | ------------- | ------------------- |
| *xFb* | BOOL      |             |               | Operational message |

#### Outputs

| Name          | Data type       | Value range | Initial value | Function                                             |
| ------------- | --------------- | ----------- | ------------- | ---------------------------------------------------- |
| *xOut*        | BOOL            |             |               | Enable - Output                                      |
| *xAbsOn*      | BOOL            |             |               | Display - block protection process                   |
| *dtAbsLastOn* | DATE\_AND\_TIME |             |               | Start date/time of the last block protection process |

#### Setpoints / Parameters

| Name             | Data type | Value range | Initial value | Function                                   |
| ---------------- | --------- | ----------- | ------------- | ------------------------------------------ |
| **tMinFbTime**   | TIME      |             | T#30s         | Minimum operating duration                 |
| **tTime**        | TIME      |             | 120s          | Duration of the block protection process   |
| **eDay**         | eDoW      |             | eDow\.Monday  | Weekday of the block protection process    |
| **todStartTime** | TOD       |             | 08:00:00      | Start time of the block protection process |

### Functional description

#### General

This function block is used to monitor the operating message *xFb* for activity. The test period comprises 168 hours each time (= 1 week).\
The operating message *xFb* is active if it is active once during the test period for the minimum operating duration **tMinFbTime** continuously active.\
The block protection process is thus prevented, the test period starts again.\
If no operating message is available, alternatively the request/release can be connected.\
\
If no activity was detected during the test period, the block protection process (release - output *xOut* = TRUE) with the duration **tTime** on the weekday **eDay** at the time **todStartTime** is triggered.\
At the same time, the test period starts again.\
The first triggering of the block protection process can, depending on the relevant settings (weekday **eDay** and **todStartTime**) be delayed.

> **Example**
>
> Test period ended on Tuesday morning, triggering of the block protection process only on the coming Monday.\
> At the output *dtAbsLastOn* the start date and start time of the last block protection process are available.
>
> \
> Prerequisite for using the AbsB function block
>
> For correct operation, the use of the TimeRead2 function block is required.

#### Enable - Output *xOut*

| *xFb* | Anti-blocking protection process | *xOut* | Notes                               |
| ----- | -------------------------------- | ------ | ----------------------------------- |
| X     | FALSE                            | FALSE  | Block protection process not active |
| X     | TRUE                             | TRUE   | Block protection process active     |

Legend: X = any

#### Display - block protection process *xAbsOn*

| *xFb* | Anti-blocking protection process | *xAbsOn* | Notes                               |
| ----- | -------------------------------- | -------- | ----------------------------------- |
| X     | FALSE                            | FALSE    | Block protection process not active |
| X     | TRUE                             | TRUE     | Block protection process active     |

Legend: X = any

#### Setpoint / parameter **eDay**

The block protection function can be generally disabled by setting **eDay** = eDow\.Inactive.

#### Setpoint / parameter **tTime**

The block protection function can be generally disabled by setting **tTime** = 0s.

### CODESYS

InOut:

| Scope       | Name           | Type   | Initial           |
| ----------- | -------------- | ------ | ----------------- |
| Input       | `xFb`          | `BOOL` |                   |
| Input Const | `tMinFbTime`   | `TIME` | TIME#30s0ms       |
| Input Const | `tTime`        | `TIME` | TIME#2m0s0ms      |
| Input Const | `eDay`         | eDoW   | eDow\.Monday      |
| Input Const | `todStartTime` | `TOD`  | TIME\_OF\_DAY#8:0 |
| Output      | `xOut`         | `BOOL` |                   |
| Output      | `xAbsOn`       | `BOOL` |                   |
| Output      | `dtAbsLastOn`  | `DT`   |                   |


---

# 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://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/binary/absb.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.
