# ManBin

## `ManBin` (FB)

FUNCTION\_BLOCK ManBin EXTENDS MANASBase IMPLEMENTS IMan

### Short description

> Manual override 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-964aa38727f712bfbe27774c6b873acb7b3f44b7%2FManBin_FB.png?alt=media" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Inputs

| Name  | Data type | Value range | Initial value | Function     |
| ----- | --------- | ----------- | ------------- | ------------ |
| *xIn* | BOOL      |             |               | Binary input |

#### Outputs

| Name   | Data type | Value range | Initial value | Function      |
| ------ | --------- | ----------- | ------------- | ------------- |
| *xOut* | BOOL      |             |               | Binary output |

#### Setpoints / parameters

| Name          | Data type | Value range                                 | Initial value | Function                                           |
| ------------- | --------- | ------------------------------------------- | ------------- | -------------------------------------------------- |
| **eManModeB** | eMANBIN   | eMANBIN.Auto, eMANBIN.ManOff, eMANBIN.ManOn | eMANBIN.Auto  | Operating mode for the binary output signal *xOut* |

### Function description

#### General

This function block is used for manual override of a binary input signal *xIn*.\\

#### Binary output *xOut*

| *xIn* | **eManMode** | *xOut* | Notes                  |
| ----- | ------------ | ------ | ---------------------- |
| FALSE | Auto         | FALSE  | Automatic mode - Off   |
| TRUE  | Auto         | TRUE   | Automatic mode - On    |
| X     | ManOff       | FALSE  | Manual operation - Off |
| X     | ManOn        | TRUE   | Manual operation - On  |

Legend: X = any\\

### Visualization

Matching visualization element from the HVACV Visu Library: **ManBin**

#### Representation

> <img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-de35f0c0e993ce16dc5e9e298ee6362e7cfd6339%2FManBin1.PNG?alt=media" alt="" data-size="original"><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-de7ef5c70a1d1c1fd2927b22ce6d1c28e6092bf5%2FManBin2.PNG?alt=media" alt="" data-size="original">

#### Interfaces visual element

| Name          | Data type | Type         | Initial value | Function                                   |
| ------------- | --------- | ------------ | ------------- | ------------------------------------------ |
| **eManModeB** | eManBin   | VAR\_IN\_OUT |               | Enter eManModeB here e.g. ManBin.eManModeB |

\
Note: VAR\_IN\_OUT interfaces must be assigned, VAR\_INPUT are optional.\\

### CODESYS

InOut:

| Scope       | Name        | Type    | Initial      |
| ----------- | ----------- | ------- | ------------ |
| Input       | `xIn`       | `BOOL`  |              |
| Input Const | `eManModeB` | eManBin | eManBin.Auto |
| Output      | `xOut`      | `BOOL`  |              |
