# checkLicense

## `checkLicense` (FB)

FUNCTION\_BLOCK checkLicense

### Short description

> Check for a valid license

### Representation

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

### Interfaces

#### Inputs

#### Outputs

| Name             | Data type | Value range | Initial value | Function                                                                      |
| ---------------- | --------- | ----------- | ------------- | ----------------------------------------------------------------------------- |
| *xLicenseActive* | BOOL      |             |               | Indicator - Result - License check (FALSE = no license, TRUE = valid license) |

#### Setpoints / parameters

### Function description

#### General

This function block is used to check whether a valid license for the library(ies) is present.

| Condition                                          | *xLicenseActive* | Notes                                              |
| -------------------------------------------------- | ---------------- | -------------------------------------------------- |
| Valid license present                              | TRUE             | Valid license present                              |
| Demo mode active                                   | TRUE             | Demo mode active                                   |
| Valid license not present AND demo mode not active | FALSE            | Valid license not present AND demo mode not active |

### CODESYS

InOut:

| Scope  | Name             | Type   |
| ------ | ---------------- | ------ |
| Output | `xLicenseActive` | `BOOL` |
