# OPPERMANN\_WS10\_MOD

## `OPPERMANN_WS10_MOD` (FB)

FUNCTION\_BLOCK OPPERMANN\_WS10\_MOD

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>                                     |
| Input       | `xUpdateSetp`       | `BOOL`             | FALSE       | <p>Update of setpoint values (on every rising edge<br>)</p>                                   |
| Inout       | `ModbusClient`      | `ModbusClientBase` |             | Client of the device                                                                          |
| Output      | `rAirTemp`          | `REAL`             |             | Air temperature in XX.X degrees Celsius                                                       |
| Output      | `rDewPointTemp`     | `REAL`             |             | Dew point temperature in XX.X degrees Celsius                                                 |
| Output      | `rrH`               | `REAL`             |             | Relative humidity in XX.X percent                                                             |
| Output      | `rAbsH_M3`          | `REAL`             |             | Absolute humidity in XX.X g/m3                                                                |
| Output      | `rAbsAirPressure`   | `REAL`             |             | Absolute air pressure in XX.X hPa                                                             |
| Output      | `rRelAirPressure`   | `REAL`             |             | Relative air pressure in XX.X hPa                                                             |
| Output      | `rWindSpeed_MS`     | `REAL`             |             | Wind speed in XX.X m/s                                                                        |
| Output      | `rWindSpeed_KPH`    | `REAL`             |             | Wind speed in XX.X km/h                                                                       |
| Output      | `rWindDirec`        | `REAL`             |             | Wind direction in XX.X (0.0 = North)                                                          |
| Output      | `rWindDirec_Cor`    | `REAL`             |             | Corrected wind direction in XX.X (0.0 = North)                                                |
| Output      | `rCompassDirec`     | `REAL`             |             | Compass direction in XX.X (0.0 = North)                                                       |
| Output      | `rRainf_Total`      | `REAL`             |             | Total cumulative rainfall amount in XX.XX mm                                                  |
| Output      | `rRainf_Diff`       | `REAL`             |             | Relative rainfall amount in XX.XX mm                                                          |
| Output      | `byRainf_Type`      | `BYTE`             |             | Type of precipitation                                                                         |
| Output      | `rRainf_Int_MMH`    | `REAL`             |             | Precipitation intensity in XX.XX mm/h                                                         |
| Output      | `rRainf_Int_MMMIN`  | `REAL`             |             | Precipitation intensity in XX.XXXX mm/min                                                     |
| Output      | `rRainf_Total_Day`  | `REAL`             |             | Cumulative daily precipitation amount in XX.XX mm                                             |
| Output      | `xPrecipitation`    | `BOOL`             |             | <p>Precipitation status (TRUE = active, detection: liquid<br>/ solid / hail)</p>              |
| Output      | `rGlobalRadiation`  | `REAL`             |             | Current global radiation in XX.X W/m2                                                         |
| Output      | `rSunAzimuth`       | `REAL`             |             | Current azimuth of the sun in XX.X degrees (0 degrees = North)                                |
| Output      | `rSunElevation`     | `REAL`             |             | <p>Current elevation of the sun in XX.X degrees (0 degrees =<br>horizontal)</p>               |
| Output      | `byUVIndex`         | `BYTE`             |             | Current UV index (0 = low, > 11 = maximum)                                                    |
| Output      | `rIllum_Day`        | `REAL`             |             | Current daytime illuminance XX.X kLx                                                          |
| Output      | `rIllum_Night`      | `REAL`             |             | Current nighttime illuminance XX.X lx                                                         |
| Output      | `rSupplyVoltage`    | `REAL`             |             | Current supply voltage in XX.X volts                                                          |
| Output      | `byHeaterState`     | `BYTE`             |             | Current heater state (0 = Off)                                                                |
| 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      | `iPosAltitude`      | `INT`              |             | Current altitude of the position in meters                                                    |
| Output      | `iWifiSigStrength`  | `INT`              |             | Current Wi‑Fi signal strength                                                                 |
| Output      | `byGPSNumSatellit`  | `BYTE`             |             | Current number of received GPS satellites                                                     |
| Output      | `byGPSPosState`     | `BYTE`             |             | <p>Current position acquisition state (1 = not acquired<br>)</p>                              |
| 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      | `wErrorCodeDev`     | `WORD`             | 0           | Error code - device (0 = no error)                                                            |
| Output      | `xBusy`             | `BOOL`             |             | Communication indicator ( TRUE = communication )                                              |
| Input Const | `xResetDevice`      | `BOOL`             | FALSE       | Reset of the entire weather station                                                           |
| Input Const | `xResetRainfTotal`  | `BOOL`             | FALSE       | Reset of the total cumulative rainfall amount                                                 |
| Input Const | `iOffsetLocalTime`  | `INT`              | 0           | Current offset for local time in XXX minutes                                                  |
| Input Const | `rPosLongitSetp`    | `REAL`             |             | <p>Current setpoint for the longitude of the position in XX.XX<br>degrees</p>                 |
| Input Const | `rPosLatitSetp`     | `REAL`             |             | <p>Current setpoint for the latitude of the position in XX.XX<br>degrees</p>                  |
| Input Const | `byAltitudeSelect`  | `BYTE`             | 0           | <p>Selection of the source for the position altitude (0 = GPS,<br>1 = ‘iPosAltitudeSetp’)</p> |
| Input Const | `iPosAltitudeSetp`  | `INT`              |             | Setpoint for the position altitude in meters                                                  |
| Input Const | `tTimeUpdateSetp`   | `TIME`             | TIME#45s0ms | <p>Update interval for operations influenced by the input<br>'xUpdateSetp'</p>                |
| Input Const | `tTimeUpdateActual` | `TIME`             | TIME#3s0ms  | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>              |
