# THIES\_WSC11\_MOD

## `THIES_WSC11_MOD` (FB)

FUNCTION\_BLOCK THIES\_WSC11\_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      | `rWindSpeed_MS`         | `REAL`             |              | Wind speed in XX.X m/s                                                                                                                                                    |
| Output      | `rWindSpeedAverage_MS`  | `REAL`             |              | Average wind speed in XX.X m/s                                                                                                                                            |
| Output      | `rWindDirec`            | `REAL`             |              | Wind direction in XX.X degrees (0.0 degrees = North)                                                                                                                      |
| Output      | `rWindDirecAverage`     | `REAL`             |              | <p>Average wind direction in XX.X degrees (0.0 degrees =<br>North)</p>                                                                                                    |
| 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.XX g/m3                                                                                                                                           |
| 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      | `rAbsAirPressure`       | `REAL`             |              | Absolute air pressure in XX.XX hPa                                                                                                                                        |
| Output      | `rAirPressureQNH`       | `REAL`             |              | <p>Calculated sea-level pressure at the current location<br>in XX.XX hPa (basis: absolute pressure at the current<br>location)</p>                                        |
| Output      | `rGlobalRadiation`      | `REAL`             |              | Current global radiation in XX.X W/m2                                                                                                                                     |
| Output      | `rIllum_Day_North`      | `REAL`             |              | Current daytime illuminance - North in XX.X kLx                                                                                                                           |
| Output      | `rIllum_Day_East`       | `REAL`             |              | Current daytime illuminance - East in XX.X kLx                                                                                                                            |
| Output      | `rIllum_Day_South`      | `REAL`             |              | Current daytime illuminance - South in XX.X kLx                                                                                                                           |
| Output      | `rIllum_Day_West`       | `REAL`             |              | Current daytime illuminance - West in XX.X kLx                                                                                                                            |
| Output      | `rIllum_Night`          | `REAL`             |              | Current nighttime illuminance in XXX lx                                                                                                                                   |
| Output      | `xRainf`                | `BOOL`             |              | <p>Precipitation status (FALSE = no precipitation, TRUE =<br>precipitation)</p>                                                                                           |
| Output      | `dwYYYYMMDD`            | `DWORD`            |              | Current date in format YYYYMMDD                                                                                                                                           |
| Output      | `rHHMMSS`               | `REAL`             |              | Current time in format HHMMSS                                                                                                                                             |
| Output      | `rOffsetUTC`            | `REAL`             |              | Current offset to UTC time in X hours                                                                                                                                     |
| Output      | `rPosLongitude`         | `REAL`             |              | Current longitude of position in XX.XXXXXX degrees                                                                                                                        |
| Output      | `rPosLatitude`          | `REAL`             |              | Current latitude of position in XX.XXXXXX degrees                                                                                                                         |
| Output      | `rSunElevation`         | `REAL`             |              | <p>Current sun elevation in XX.X degrees (0.0 degrees =<br>horizontal)</p>                                                                                                |
| Output      | `rSunAzimuth`           | `REAL`             |              | Current sun azimuth in XX.X degrees (0.0 degrees = North)                                                                                                                 |
| Output      | `rSensorStatus`         | `REAL`             |              | <p>Current sensor status, bitwise encoded (bit X = TRUE:<br>measurement disturbed)</p>                                                                                    |
| Output      | `rHeightAboveSeaLev`    | `REAL`             |              | Current height above sea level in XX.X m (source: GPS)                                                                                                                    |
| Output      | `rFWVersion`            | `REAL`             |              | Current firmware version                                                                                                                                                  |
| 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      | `xBusy`                 | `BOOL`             |              | Communication indicator ( TRUE = communication )                                                                                                                          |
| Input Const | `rrHOffset`             | `REAL`             | 0.0          | <p>Constant measurement offset for the transmitted relative<br>humidity - actual value</p>                                                                                |
| Input Const | `rAirTempOffset`        | `REAL`             | 0.0          | <p>Constant measurement offset for the transmitted temperature<br>- actual value</p>                                                                                      |
| Input Const | `wIllumNightMode`       | `WORD`             | 1            | <p>Current calculation mode for the twilight sensors (0 =<br>sum of all four sensors, 1 = average of all four<br>sensors)</p>                                             |
| Input Const | `iOffsetTime`           | `INT`              | 48           | <p>Current offset to current UTC (0 = 24 = UTC, 23 = UTC<br>- 1h, 25 = UTC + 1h, 48 = CEST)</p>                                                                           |
| Input Const | `wPosAltitudeSetp`      | `WORD`             | 3001         | <p>Setpoint for the position altitude in meters (0-3000m,<br>3001 = GPS data)</p>                                                                                         |
| Input Const | `tTimeUpdatePassw`      | `TIME`             | TIME#1m0s0ms | <p>Update interval for updating the password (meaning:<br>user 'User' is permanently logged in, maximum: 120s<br>)</p>                                                    |
| 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>                                                                                          |
