# ManInfo

## `ManInfo` (FB)

FUNCTION\_BLOCK ManInfo EXTENDS LAT.Element IMPLEMENTS IManInfoProtocol, IMan

### Short description

> Status indicator for manual override of function blocks\
> Application: Generation of a user notification when a manual override occurs

### Representation

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

### Interfaces

#### Inputs

| Name         | Data type | Value range | Initial value | Function    |
| ------------ | --------- | ----------- | ------------- | ----------- |
| *xResetAuto* | BOOL      |             |               | Reset input |

#### Outputs

| Name                | Data type | Value range | Initial value | Function                                         |
| ------------------- | --------- | ----------- | ------------- | ------------------------------------------------ |
| *xManActive*        | BOOL      |             | FALSE         | Status indicator - manual overrides              |
| *iManBinCounter*    | INT       |             | 0             | Number of binary manual overrides                |
| *iManNumCounter*    | INT       |             | 0             | Number of numeric manual overrides               |
| *iManOpCounter*     | INT       |             | 0             | Number of manual overrides on the mode selectors |
| *iManFbCounter*     | INT       |             | 0             | Number of function blocks in manual mode         |
| *iEnControlCounter* | INT       |             | 0             | Number of disabled function enablements          |
| *iManCounter*       | INT       |             | 0             | Total number of manual overrides                 |
| *udiManCounter*     | CAA.Count |             |               | Number of monitored slave function blocks        |

### Function description

#### General

This function block serves as a status indicator for the manual override of function blocks.\
It takes into account all function blocks that have a binary or numeric output with manual override, perform a mode switching, can be operated in different operating modes, or have an enable input.\
\\

#### Reset input *xResetAuto*

Each rising edge at the reset input causes an immediate transition of all monitored function blocks to automatic mode.\
\\

#### Status indicator - manual overrides *xManActive*

The status indicator is in the TRUE state if at least one manual override is active.\
The status indicator is in the FALSE state if no manual override is active.\
\\

#### Number of binary manual overrides *iManBinCounter*

This output permanently displays the current number of binary manual overrides.\
\\

#### Number of numeric manual overrides *iManNumCounter*

This output permanently displays the current number of numeric manual overrides.\
\\

#### Number of manual overrides on the mode selectors *iManOpCounter*

This output permanently displays the current number of manual overrides on the mode selectors.\
\\

#### Number of function blocks in manual mode *iManFbCounter*

This output permanently displays the current number of function blocks in manual mode.\
\\

#### Number of disabled function enablements *iEnControlCounter*

This output permanently displays the current number of disabled function enablements.\
\\

#### Total number of manual overrides *iManCounter*

This output permanently displays the current total number of manual overrides.\
\\

#### *udiManCounter*

This output permanently displays the current number of monitored slave function blocks.\\

### CODESYS

InOut:

| Scope  | Name                | Type        | Initial |
| ------ | ------------------- | ----------- | ------- |
| Input  | `xResetAuto`        | `BOOL`      |         |
| Output | `xManActive`        | `BOOL`      | 0       |
| Output | `iManBinCounter`    | `INT`       | 0       |
| Output | `iManNumCounter`    | `INT`       | 0       |
| Output | `iManOpCounter`     | `INT`       | 0       |
| Output | `iManFbCounter`     | `INT`       | 0       |
| Output | `iEnControlCounter` | `INT`       | 0       |
| Output | `iManCounter`       | `INT`       | 0       |
| Output | `udiManCounter`     | `CAA.COUNT` |         |
