# ELSNER\_P03\_3\_MODBUS\_WITH\_GPS

## `ELSNER_P03_3_MODBUS_WITH_GPS` (FB)

FUNCTION\_BLOCK ELSNER\_P03\_3\_MODBUS\_WITH\_GPS

InOut:

| Scope       | Name                    | Type                                                | Initial                                                  | Comment                                                                                                                                                                   |
| ----------- | ----------------------- | --------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                                              | TRUE                                                     | Enable / disable communication ( TRUE = enabled )                                                                                                                         |
| Input       | `byUnitId`              | `BYTE`                                              | 0                                                        | Address of the device                                                                                                                                                     |
| Input       | `xUpdateActual`         | `BOOL`                                              | FALSE                                                    | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                                 |
| Inout       | `ModbusClient`          | `ModbusClientBase`                                  |                                                          | Client of the device                                                                                                                                                      |
| Output      | `rAirTemp`              | `REAL`                                              |                                                          | Current air temperature in XX.X degrees Celsius                                                                                                                           |
| Output      | `xSensorOffsetInDevice` | `BOOL`                                              |                                                          | <p>Indicator whether the calibration of the sensors must be<br>performed in the device (TRUE = calibration in device required, FALSE = calibration in<br>FB required)</p> |
| Output      | `rIllum_South`          | `REAL`                                              |                                                          | Current illuminance - south side in XXX kLx                                                                                                                               |
| Output      | `rIllum_West`           | `REAL`                                              |                                                          | Current illuminance - west side in XXX kLx                                                                                                                                |
| Output      | `rIllum_East`           | `REAL`                                              |                                                          | Current illuminance - east side in XXX kLx                                                                                                                                |
| Output      | `rIllum_Night`          | `REAL`                                              |                                                          | Current illuminance - night in XXX lx                                                                                                                                     |
| Output      | `rWindSpeed_MS`         | `REAL`                                              |                                                          | Current wind speed in XX.X m/s                                                                                                                                            |
| Output      | `eClockType`            | ELSNER\_P03\_3\_MODBUS\_MIT\_GPS\_CLOCK\_TYPE\_CODE |                                                          | Current source for the time                                                                                                                                               |
| Output      | `xRainFall`             | `BOOL`                                              |                                                          | Current state of precipitation ( TRUE = rain )                                                                                                                            |
| Output      | `wDateDD`               | `WORD`                                              |                                                          | Current day                                                                                                                                                               |
| Output      | `wDateMM`               | `WORD`                                              |                                                          | Current month                                                                                                                                                             |
| Output      | `wDateJJJJ`             | `WORD`                                              |                                                          | Current year                                                                                                                                                              |
| Output      | `wTimeHH`               | `WORD`                                              |                                                          | Current number of hours                                                                                                                                                   |
| Output      | `wTimeMM`               | `WORD`                                              |                                                          | Current number of minutes                                                                                                                                                 |
| Output      | `wTimeSS`               | `WORD`                                              |                                                          | Current number of seconds                                                                                                                                                 |
| Output      | `rSunAzimuth`           | `REAL`                                              |                                                          | Current sun azimuth in XX.X degrees (0.0 degrees = North)                                                                                                                 |
| Output      | `rSunElevation`         | `REAL`                                              |                                                          | <p>Current sun elevation in XX.X degrees (0.0 degrees =<br>horizontal)</p>                                                                                                |
| Output      | `rPosLongitude`         | `REAL`                                              |                                                          | Current longitude of the position in XX.XX degrees                                                                                                                        |
| Output      | `rPosLatitude`          | `REAL`                                              |                                                          | Current latitude of the position in XX.XX degrees                                                                                                                         |
| Output      | `xAlarm`                | `BOOL`                                              | FALSE                                                    | General fault ( TRUE = fault )                                                                                                                                            |
| Output      | `xAlarmCom`             | `BOOL`                                              | FALSE                                                    | General fault - communication ( TRUE = fault )                                                                                                                            |
| Output      | `eErrorCodeCom`         | ModbusErrorCode                                     |                                                          | Error code - communication ( 0 = no error )                                                                                                                               |
| Output      | `eErrorCodeDev`         | ELSNER\_P03\_3\_MODBUS\_WITH\_GPS\_ERROR\_CODE      | ELSNER\_P03\_3\_MODBUS\_WITH\_GPS\_ERROR\_CODE.NO\_ERROR | Error code - device (0 = no error)                                                                                                                                        |
| Output      | `xBusy`                 | `BOOL`                                              |                                                          | Communication indicator ( TRUE = communication )                                                                                                                          |
| Input Const | `rAirTempOffset`        | `REAL`                                              | 0.0                                                      | <p>Constant measurement offset for the transmitted actual value of<br>outside temperature</p>                                                                             |
| Input Const | `tTimeUpdateActual`     | `TIME`                                              | TIME#3s0ms                                               | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>                                                                                          |
