# ManNum

## `ManNum` (FB)

FUNCTION\_BLOCK ManNum EXTENDS MANASBase IMPLEMENTS IMan

### Short description

> Manual override for a numeric signal

### Representation

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

### Interfaces

#### Inputs

| Name  | Data type | Value range | Initial value | Function      |
| ----- | --------- | ----------- | ------------- | ------------- |
| *rIn* | REAL      |             |               | Numeric input |

#### Outputs

| Name   | Data type | Value range | Initial value | Function       |
| ------ | --------- | ----------- | ------------- | -------------- |
| *rOut* | REAL      |             |               | Numeric output |

#### Setpoints / Parameters

| Name          | Data type | Value range               | Initial value | Function                                            |
| ------------- | --------- | ------------------------- | ------------- | --------------------------------------------------- |
| **rManValue** | REAL      |                           | 0.0           | Manual value                                        |
| **eManModeN** | eManNum   | eManNum.Auto, eManNum.Man | eManNum.Auto  | Operating mode for the numeric output signal *rOut* |

### Function description

#### General

This function block is used for manual override of a numeric input signal *rIn*.\\

#### Numeric output *rOut*

| *rIn* | **eManModeN** | *rOut*        | Notes                         |
| ----- | ------------- | ------------- | ----------------------------- |
| Value | eManNum.Auto  | Value         | Automatic mode with *rIn*     |
| X     | eManNum.Man   | **rManValue** | Manual mode with manual value |

Legend: X = any

### Visualization

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

#### Representation

>

#### Interface Visu element

| Name              | Data type    | Type         | Initial value | Function                                                                                                           |
| ----------------- | ------------ | ------------ | ------------- | ------------------------------------------------------------------------------------------------------------------ |
| **eManModeN**     | HVAC.eMANNUM | VAR\_IN\_OUT |               | Enter eManModeN from FB ManNum here e.g. PRG.ManNum.eManModeN                                                      |
| **rManValue**     | REAL         | VAR\_IN\_OUT |               | Enter manual value rManValue from FB ManNum here e.g. PRG.ManNum.rManValue                                         |
| **bDecimals**     | BYTE         | VAR\_INPUT   | 1             | Enter the number of decimal places here e.g. 0= XX ; 1 = XX.X ; 2= XX.XX The display is not rounded but truncated. |
| **sUnit**         | STRING       | VAR\_INPUT   |               | Enter unit as a string e.g. '°C' or '%'                                                                            |
| **rMinInputVisu** | REAL         | VAR\_INPUT   | 0             | Min input that appears in the numpad and lights up red if the value is undercut. Input is then not possible.       |
| **rMaxInputVisu** | REAL         | VAR\_INPUT   | 100           | Max input that appears in the numpad and lights up red if the value is exceeded. Input is then not possible.       |
| **sDialogTitle**  | STRING       | VAR\_INPUT   |               | Enter title as a string e.g.: 'Room temperature input' - appears in the numpad during entry.                       |

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

### CODESYS

InOut:

| Scope       | Name        | Type    | Initial      |
| ----------- | ----------- | ------- | ------------ |
| Input       | `rIn`       | `REAL`  |              |
| Input Const | `rManValue` | `REAL`  | 0            |
| Input Const | `eManModeN` | eManNum | eManNum.Auto |
| Output      | `rOut`      | `REAL`  |              |
