# MySQL\_Close

## `MySQL_Close` (FB)

FUNCTION\_BLOCK MySQL\_Close

**Kurze Beschreibung:**

> Dieser Funktionsbaustein beendet die MySQL-Verbindung.

**Detaillierte Beschreibung:**\
Der Schließvorgang startet mit einer steigenden Flanke von `xStart`. Die Variable `xStart` wird am Ende des Vorgangs zurückgesetzt.\
Tritt während des Schließvorgangs ein Fehler auf, wird ein FEHLER-Code sowie der aktuelle Ausführungszustand angezeigt, was bei der Identifizierung des Problems hilft.

InOut:

| Scope  | Name               | Type                    | Comment                                                                        |
| ------ | ------------------ | ----------------------- | ------------------------------------------------------------------------------ |
| Inout  | `xStart`           | `BOOL`                  | Start execution on a rising edge                                               |
| Inout  | `MySQL_Connection` | MySQL\_ConnectionString | <p>MySQL connection string which holds the server and login<br>information</p> |
| Output | `eError`           | ERROR                   | Error type                                                                     |
| Output | `sExeute_State`    | `STRING(200)`           | Current execute state                                                          |
