# GeneralAndTime

## `GeneralAndTime` (FB)

FUNCTION\_BLOCK GeneralAndTime IMPLEMENTS IHttpRequest

### **Darstellung**

<figure><img src="https://879424349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FCB3e0eQtNAZwkMhTatyH%2FGeneralandTime.png?alt=media&#x26;token=22e8adb7-414a-4a70-8957-0267a2ca120d" alt=""><figcaption></figcaption></figure>

InOut:

| Scope  | Name                   | Type                    | Initial         | Comment                         |
| ------ | ---------------------- | ----------------------- | --------------- | ------------------------------- |
| Input  | `xEn`                  | `BOOL`                  | TRUE            | FB Freigabe                     |
| Input  | `itfHardwareConnector` | `IHttpRequestConnector` |                 | Interface an Hardware Connector |
| Input  | `xUserLed`             | `BOOL`                  |                 | Ansteuerung der User LED        |
| Input  | `xGetTime`             | `BOOL`                  |                 | Systemzeit abfragen             |
| Input  | `dtSetDate`            | `DATE`                  |                 | Datum zum setzen                |
| Input  | `todSetTime`           | `TOD`                   |                 | Zeit zum setzen                 |
| Input  | `sSetTimeZone`         | `STRING`                | ‘Europe/Berlin’ | Zeit Zone zum setzen            |
| Input  | `xSetTime`             | `BOOL`                  |                 | Datum und Zeit setzen starten   |
| Output | `dtTimeData`           | `DT`                    |                 |                                 |
| Output | `sTimeZone`            | `STRING`                | ‘’              |                                 |
| Output | `sHardwareModel`       | `STRING`                |                 |                                 |
| Output | `sBootloaderVersion`   | `STRING`                |                 |                                 |
| Output | `sFirmwareVersion`     | `STRING`                |                 |                                 |
| Output | `sSoftwareVersion`     | `STRING`                |                 |                                 |
| Output | `eError`               | ERROR                   |                 |                                 |
