> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/thies/thies_wsc11_mod.md).

# THIES\_WSC11\_MOD

## `THIES_WSC11_MOD` (FB)

`FUNCTION_BLOCK` THIES\_WSC11\_MOD

### Representation

<figure><img src="/files/f6c4e4450abf63cff1f0d3715772797f0ee76501" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                    | Type               | Initial      | Comment                                                                                                                                                             |
| ----------- | ----------------------- | ------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`             | TRUE         | Enable / disable communication (TRUE = enable)                                                                                                                      |
| Input       | `byUnitId`              | `BYTE`             | 0            | Device address                                                                                                                                                      |
| Input       | `xUpdateActual`         | `BOOL`             | FALSE        | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                           |
| Input       | `xUpdateSetp`           | `BOOL`             | FALSE        | <p>Update of setpoints (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>Indication of whether the sensors must be calibrated in the device<br>(TRUE = calibration in the device required, FALSE = calibration in the<br>FB required)</p> |
| Output      | `rAbsAirPressure`       | `REAL`             |              | Absolute air pressure in XX.XX hPa                                                                                                                                  |
| Output      | `rAirPressureQNH`       | `REAL`             |              | <p>Calculated air pressure at sea level at the current location<br>in XX.XX hPa (basis: absolute air 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 night illuminance in XXX lx                                                                                                                                 |
| Output      | `xRainf`                | `BOOL`             |              | <p>Precipitation status (FALSE = no precipitation, TRUE =<br>precipitation)</p>                                                                                     |
| Output      | `dwYYYYMMDD`            | `DWORD`            |              | Current date in YYYYMMDD format                                                                                                                                     |
| Output      | `rHHMMSS`               | `REAL`             |              | Current time in HHMMSS format                                                                                                                                       |
| Output      | `rOffsetUTC`            | `REAL`             |              | Current offset from UTC time in X hours                                                                                                                             |
| Output      | `rPosLongitude`         | `REAL`             |              | Current longitude of the position in XX.XXXXXX degrees                                                                                                              |
| Output      | `rPosLatitude`          | `REAL`             |              | Current latitude of the 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, bit-coded (Bit X = TRUE:<br>measured value faulty)</p>                                                                                    |
| Output      | `rHeightAboveSeaLev`    | `REAL`             |              | Current altitude above sea level in XX.X m (source: GPS)                                                                                                            |
| Output      | `rFWVersion`            | `REAL`             |              | Current firmware version                                                                                                                                            |
| Output      | `xAlarm`                | `BOOL`             | FALSE        | Collective fault (TRUE = fault)                                                                                                                                     |
| Output      | `xAlarmCom`             | `BOOL`             | FALSE        | Collective 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 measured-value offset for the transmitted relative<br>humidity actual value</p>                                                                         |
| Input Const | `rAirTempOffset`        | `REAL`             | 0.0          | <p>Constant measured-value offset for the transmitted temperature<br>actual value</p>                                                                               |
| Input Const | `wIllumNightMode`       | `WORD`             | 1            | <p>Current calculation method 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 UTC time (0 = 24 = UTC, 23 = UTC<br>- 1h, 25 = UTC + 1h, 48 = CEST)</p>                                                                        |
| Input Const | `wPosAltitudeSetp`      | `WORD`             | 3001         | <p>Setpoint for the site altitude of the position in meters (0-3000m,<br>3001 = GPS data)</p>                                                                       |
| Input Const | `tTimeUpdatePassw`      | `TIME`             | TIME#1m0s0ms | <p>Update interval for updating the password (purpose:<br>user <code>user</code> is logged in permanently, maximum: 120s<br>)</p>                                   |
| Input Const | `tTimeUpdateSetp`       | `TIME`             | TIME#45s0ms  | <p>Update interval for the processes influenced by the input<br><code>xUpdateSetp</code> influenced</p>                                                             |
| Input Const | `tTimeUpdateActual`     | `TIME`             | TIME#3s0ms   | <p>Update interval for the processes influenced by the input<br><code>xUpdateActual</code> influenced</p>                                                           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/thies/thies_wsc11_mod.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
