# LOYTEC\_LSTAT\_80X\_GX\_LX\_MOD

## `LOYTEC_LSTAT_80X_GX_LX_MOD` (FB)

`FUNCTION_BLOCK` LOYTEC\_LSTAT\_80X\_GX\_LX\_MOD

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2F7UDBHMB1M8kQ4kXD2Itd%2FLOYTEC_LSTAT_80X_GX_LX_MOD.png?alt=media&#x26;token=4bf6808e-ba0f-461a-9598-6d740d794727" alt=""><figcaption></figcaption></figure>

InOut:

| Scope                     | Name                                      | Type                                                   | Initial                                                                                                                                                | Comment                                                                                                                 |
| ------------------------- | ----------------------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
| Input                     | `xEn`                                     | `BOOL`                                                 | TRUE                                                                                                                                                   | Enable / disable communication (TRUE = enable)                                                                          |
| `byUnitId`                | `BYTE`                                    | 0                                                      | Device address (0 .. 255)                                                                                                                              |                                                                                                                         |
| `xUpdateActual`           | `BOOL`                                    | FALSE                                                  | Update of actual values (on every rising edge)                                                                                                         |                                                                                                                         |
| `xUpdateStates`           | `BOOL`                                    | FALSE                                                  | Update of states (on every rising edge)                                                                                                                |                                                                                                                         |
| `xUpdateSetp`             | `BOOL`                                    | FALSE                                                  | Update of setpoints (on every rising edge)                                                                                                             |                                                                                                                         |
| `xUpdateConfig`           | `BOOL`                                    | FALSE                                                  | Update of configuration (on every rising edge)                                                                                                         |                                                                                                                         |
| `xResSetpTempOff`         | `BOOL`                                    | FALSE                                                  | Reset of the setpoint temperature offset (on every rising edge)                                                                                        |                                                                                                                         |
| `rSetpTempNight`          | `REAL`                                    | 18.0                                                   | Setpoint temperature - night mode (degrees Celsius)                                                                                                    |                                                                                                                         |
| `rSetpTempBaseDay`        | `REAL`                                    | 22.0                                                   | Base setpoint temperature - day mode (degrees Celsius)                                                                                                 |                                                                                                                         |
| `xMotionDetectMan`        | `BOOL`                                    | FALSE                                                  | Manual trigger of motion/presence detection (TRUE = motion/presence)                                                                                   |                                                                                                                         |
| `rSetpFanLevelNight`      | `REAL`                                    | 1.0                                                    | Set fan level - night mode (only integer setpoints !!!)                                                                                                |                                                                                                                         |
| `rSetpFanLevelBaseDay`    | `REAL`                                    | 2.0                                                    | Base set fan level - day mode (only integer setpoints !!!)                                                                                             |                                                                                                                         |
| `rSetpDispFanLev`         | `REAL`                                    | 0.0                                                    | Setpoint for the display of the fan stage (bar graph - right)                                                                                          |                                                                                                                         |
| `rSetpDispHCLev`          | `REAL`                                    | 0.0                                                    | Setpoint for the display of heating/cooling output (bar graph - left)                                                                                  |                                                                                                                         |
| `xDsplSymbPresen`         | `BOOL`                                    | FALSE                                                  | Display of the symbols for presence (= TRUE) or absence (= FALSE) (FALSE = night mode, TRUE = day mode)                                                |                                                                                                                         |
| `xDsplSymbHeat`           | `BOOL`                                    | FALSE                                                  | Display of the symbol for heating operation (TRUE = display)                                                                                           |                                                                                                                         |
| `xDsplSymbCool`           | `BOOL`                                    | FALSE                                                  | Display of the symbol for cooling operation (TRUE = display)                                                                                           |                                                                                                                         |
| `xDsplSymbFan`            | `BOOL`                                    | FALSE                                                  | Display of the symbol for the fan (TRUE = display)                                                                                                     |                                                                                                                         |
| `xDsplSymbAlWindo`        | `BOOL`                                    | FALSE                                                  | Display of the window alarm symbol (TRUE = display)                                                                                                    |                                                                                                                         |
| `xDsplSymbAlRainf`        | `BOOL`                                    | FALSE                                                  | Display of the rain alarm symbol (TRUE = display)                                                                                                      |                                                                                                                         |
| `xDsplSymbAlStorm`        | `BOOL`                                    | FALSE                                                  | Display of the wind alarm symbol (TRUE = display)                                                                                                      |                                                                                                                         |
| `xDsplSymbAlAlarm`        | `BOOL`                                    | FALSE                                                  | Display of the alarm symbol (TRUE = display)                                                                                                           |                                                                                                                         |
| `xDsplSymbNotDrop`        | `BOOL`                                    | FALSE                                                  | Display of the crossed-out drop symbol (TRUE = display)                                                                                                |                                                                                                                         |
| `xDsplSymbClock`          | `BOOL`                                    | FALSE                                                  | Display of the clock symbol (TRUE = display)                                                                                                           |                                                                                                                         |
| `xBuzzer_Alarm`           | `BOOL`                                    | FALSE                                                  | Enable / disable the alarm tone (buzzer) (TRUE = enable)                                                                                               |                                                                                                                         |
| `xResetDevice`            | `BOOL`                                    | FALSE                                                  | Reset of the device (on every rising edge)                                                                                                             |                                                                                                                         |
| Inout                     | `ModbusClient`                            | `ModbusClientBase`                                     |                                                                                                                                                        | Client of the device                                                                                                    |
| Output                    | `rSetpTemp`                               | `REAL`                                                 |                                                                                                                                                        | Setpoint temperature (degrees Celsius) (corresponds to the room setpoint temperature shown on the RBG) (= register 384) |
| `rSetpTempOff`            | `REAL`                                    |                                                        | Setpoint temperature offset (Kelvin) (calculation: rSetpTempOff = rSetpTemp - rSetpTempBase)                                                           |                                                                                                                         |
| `rSetpTempMin`            | `REAL`                                    |                                                        | Absolute minimum value - setpoint temperature (degrees Celsius) (calculation, depending on operating mode night/day)                                   |                                                                                                                         |
| `rSetpTempMax`            | `REAL`                                    |                                                        | Absolute maximum value - setpoint temperature (degrees Celsius) (calculation, depending on operating mode night/day)                                   |                                                                                                                         |
| `rSetpFanLevel`           | `REAL`                                    |                                                        | Set fan level (corresponds to the set fan level shown on the RBG) (= register 385)                                                                     |                                                                                                                         |
| `rSetpFanLevelMin`        | `REAL`                                    |                                                        | Absolute minimum value - set fan level (calculation, depending on operating mode night/day)                                                            |                                                                                                                         |
| `rSetpFanLevelMax`        | `REAL`                                    |                                                        | Absolute maximum value - set fan level (calculation, depending on operating mode night/day)                                                            |                                                                                                                         |
| `rRoomTemp`               | `REAL`                                    |                                                        | Room temperature in XXX.X degrees Celsius                                                                                                              |                                                                                                                         |
| `rExtTemp`                | `REAL`                                    |                                                        | External temperature in XXX.X degrees Celsius                                                                                                          |                                                                                                                         |
| `rRelHumidity`            | `REAL`                                    |                                                        | Relative room humidity in XXX.X %                                                                                                                      |                                                                                                                         |
| `rDewPointTemp`           | `REAL`                                    |                                                        | Dew point temperature in XXX.X degrees Celsius (the offsets of temperature and relative humidity are not taken into account)                           |                                                                                                                         |
| `rCO2`                    | `REAL`                                    |                                                        | Current CO2 concentration in ppm                                                                                                                       |                                                                                                                         |
| `xMotionDetect`           | `BOOL`                                    |                                                        | Status of motion detection (TRUE = motion/presence detected)                                                                                           |                                                                                                                         |
| `xSensorOffsetInDevice`   | `BOOL`                                    |                                                        | Display whether the sensors must be calibrated in the device (TRUE = calibration required in the device, FALSE = calibration required in the FB)       |                                                                                                                         |
| `rSupplyVolt`             | `REAL`                                    |                                                        | Supply voltage in XXX.X Volts                                                                                                                          |                                                                                                                         |
| `rCpuTemp`                | `REAL`                                    |                                                        | CPU temperature in XXX.X degrees Celsius                                                                                                               |                                                                                                                         |
| `rCpuVolt`                | `REAL`                                    |                                                        | CPU voltage in XXX.X Volts                                                                                                                             |                                                                                                                         |
| `sSerialNum`              | `STRING`                                  |                                                        | Serial number of the device                                                                                                                            |                                                                                                                         |
| `sProductCode`            | `STRING`                                  |                                                        | Product code of the device (e.g. `21X`)                                                                                                                |                                                                                                                         |
| `wDeviceMode`             | `WORD`                                    |                                                        | Operating mode of the device (= register 101)                                                                                                          |                                                                                                                         |
| `xConfig`                 | `BOOL`                                    | FALSE                                                  | State of the device configuration \[ TRUE = configuration active ]                                                                                     |                                                                                                                         |
| `xButtonPresence`         | `BOOL`                                    | FALSE                                                  | Pressing the presence button (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                                           |                                                                                                                         |
| `xButtonTempUp`           | `BOOL`                                    | FALSE                                                  | Pressing the button to increase the setpoint temperature (pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                    |                                                                                                                         |
| `xButtonTempDown`         | `BOOL`                                    | FALSE                                                  | Pressing the button to decrease the setpoint temperature (pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                    |                                                                                                                         |
| `xButtonFanUp`            | `BOOL`                                    | FALSE                                                  | Pressing the button to increase the fan level (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                          |                                                                                                                         |
| `xButtonFanDown`          | `BOOL`                                    | FALSE                                                  | Pressing the button to decrease the fan level (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                          |                                                                                                                         |
| `xButtonLightOn`          | `BOOL`                                    | FALSE                                                  | Pressing the button to activate the lighting (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                           |                                                                                                                         |
| `xButtonLightOff`         | `BOOL`                                    | FALSE                                                  | Pressing the button to deactivate the lighting (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                         |                                                                                                                         |
| `xButtonShadeUp`          | `BOOL`                                    | FALSE                                                  | Pressing the button to open the shading (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                                |                                                                                                                         |
| `xButtonShadeDown`        | `BOOL`                                    | FALSE                                                  | Pressing the button to close the shading (RAW, pulse with duration `tTimeButtonPulse`) (RBG and/or VISU)                                               |                                                                                                                         |
| `xStateExtBut0`           | `BOOL`                                    |                                                        | State of external input 0                                                                                                                              |                                                                                                                         |
| `xStateExtBut1`           | `BOOL`                                    |                                                        | State of external input 1                                                                                                                              |                                                                                                                         |
| `xStateExtBut2`           | `BOOL`                                    |                                                        | State of external input 2                                                                                                                              |                                                                                                                         |
| `xStateExtBut3`           | `BOOL`                                    |                                                        | State of external input 3                                                                                                                              |                                                                                                                         |
| `xAlarm`                  | `BOOL`                                    | FALSE                                                  | Collective fault (TRUE = fault)                                                                                                                        |                                                                                                                         |
| `xAlarmCom`               | `BOOL`                                    | FALSE                                                  | Collective fault - communication (TRUE = fault)                                                                                                        |                                                                                                                         |
| `eErrorCodeCom`           | ModbusErrorCode                           |                                                        | Error code - communication (0 = no error)                                                                                                              |                                                                                                                         |
| `eErrorCodeDev`           | LOYTEC\_ERROR\_CODE\_TYPE\_2              |                                                        | Error code - device (0 = no error)                                                                                                                     |                                                                                                                         |
| `xBusy`                   | `BOOL`                                    |                                                        | Communication indicator (TRUE = communication)                                                                                                         |                                                                                                                         |
| Input Const               | `tTimeMotionDetectTimeout`                | `TIME`                                                 | TIME#10s0ms                                                                                                                                            | Time between the last detected motion/presence and switching off the output `xMotionDetect` in seconds                  |
| `xMotionDetectEnable`     | `BOOL`                                    | FALSE                                                  | Enable/block motion/presence detection (TRUE = enable)                                                                                                 |                                                                                                                         |
| `eMotionDetectOutputMode` | LOYTEC\_MOTION\_DETECTION\_OUTPUT\_MODE   | LOYTEC\_MOTION\_DETECTION\_OUTPUT\_MODE.SHORT\_PRESSED | Definition of the output behavior `xMotionDetect`                                                                                                      |                                                                                                                         |
| `rCO2Offset`              | `REAL`                                    | 0.0                                                    | Constant measured value offset for the transmitted CO2 content - actual value (internal CO2 content)                                                   |                                                                                                                         |
| `rRelHumidityOffset`      | `REAL`                                    | 0.0                                                    | Constant measured value offset for the transmitted relative humidity - actual value (internal relative humidity)                                       |                                                                                                                         |
| `rExtTempOffset`          | `REAL`                                    | 0.0                                                    | Constant measured value offset for the transmitted temperature - actual value (external temperature)                                                   |                                                                                                                         |
| `rRoomTempOffset`         | `REAL`                                    | 0.0                                                    | Constant measured value offset for the transmitted temperature - actual value (internal temperature)                                                   |                                                                                                                         |
| `xVisuShadeDown`          | `BOOL`                                    | FALSE                                                  | Pressing the button to close the shading in the visualization                                                                                          |                                                                                                                         |
| `xVisuShadeUp`            | `BOOL`                                    | FALSE                                                  | Pressing the button to open the shading in the visualization                                                                                           |                                                                                                                         |
| `xVisuLightOff`           | `BOOL`                                    | FALSE                                                  | Pressing the button to deactivate the lighting in the visualization                                                                                    |                                                                                                                         |
| `xVisuLightOn`            | `BOOL`                                    | FALSE                                                  | Pressing the button to activate the lighting in the visualization                                                                                      |                                                                                                                         |
| `xVisuFanDown`            | `BOOL`                                    | FALSE                                                  | Pressing the button to decrease the fan stage in the visualization                                                                                     |                                                                                                                         |
| `xVisuFanUp`              | `BOOL`                                    | FALSE                                                  | Pressing the button to increase the fan stage in the visualization                                                                                     |                                                                                                                         |
| `xVisuTempDown`           | `BOOL`                                    | FALSE                                                  | Pressing the button to decrease the set temperature in the visualization                                                                               |                                                                                                                         |
| `xVisuTempUp`             | `BOOL`                                    | FALSE                                                  | Pressing the button to increase the set temperature in the visualization                                                                               |                                                                                                                         |
| `xVisuPresence`           | `BOOL`                                    | FALSE                                                  | Pressing the presence button in the visualization                                                                                                      |                                                                                                                         |
| `eDisplAutoDim`           | LOYTEC\_RYMASKON\_2XX\_DISPL\_AUTO\_DIM   | LOYTEC\_RYMASKON\_2XX\_DISPL\_AUTO\_DIM.PERCENT\_10    | Definition of the 'display dimming' functionality after about 2 minutes without pressing a button (OFF, 50% brightness, 10% brightness, 0% brightness) |                                                                                                                         |
| `eShadeOutpMode`          | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE.RAW          | Operating mode of the outputs `xButtonShadeUp` or `xButtonShadeDwn` (RAW, PULSE)                                                                       |                                                                                                                         |
| `eLightOutpMode`          | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE.PULSE        | Operating mode of the outputs `xButtonLightOn` or `xButtonLightOff` (RAW, PULSE)                                                                       |                                                                                                                         |
| `eFanOutpMode`            | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE.PULSE        | Operating mode of the outputs `xButtonFanUp` or `xButtonFanDwn` (RAW, PULSE)                                                                           |                                                                                                                         |
| `ePresenceOutpMode`       | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE | LOYTEC\_RYMASKON\_2XX\_BUTTON\_OUTP\_MODE.PULSE        | Operating mode of the output `xButtonPresence` (RAW, PULSE)                                                                                            |                                                                                                                         |
| `xDispBargrHCLev`         | `BOOL`                                    | FALSE                                                  | Enable / disable the display of the left bar graph (FALSE = no display)                                                                                |                                                                                                                         |
| `xDispBargrFanLev`        | `BOOL`                                    | FALSE                                                  | Enable / disable the display of the right bar graph (FALSE = no display)                                                                               |                                                                                                                         |
| `eColorScheme`            | LOYTEC\_LCD\_COLOR\_SCHEME                | LOYTEC\_LCD\_COLOR\_SCHEME.WHITE                       | Number of the color scheme (1 = white, 1-7 = valid numbers)                                                                                            |                                                                                                                         |
| `wPinCodeEndUser`         | `WORD`                                    | 3333                                                   | PIN code for the user level (0 = no code, 0001 - 9999 valid code)                                                                                      |                                                                                                                         |
| `wPinCodeAdmin`           | `WORD`                                    | 7458                                                   | PIN code for the administrator level (0 = no code, 0001 - 9999 valid code)                                                                             |                                                                                                                         |
| `rSetpFanLevelMaxPara`    | `REAL`                                    | 3.0                                                    | Setpoint - absolute maximum value - set fan level in day mode (only integer setpoints !!!)                                                             |                                                                                                                         |
| `rSetpFanLevelMinPara`    | `REAL`                                    | 0.0                                                    | Setpoint - absolute minimum value - set fan level in day mode (only integer setpoints !!!)                                                             |                                                                                                                         |
| `rSetpTempOffMax`         | `REAL`                                    | 3.0                                                    | Absolute maximum value of the setpoint temperature offset in day mode (Kelvin)                                                                         |                                                                                                                         |
| `rSetpTempOffMin`         | `REAL`                                    | -3.0                                                   | Absolute minimum value of the setpoint temperature offset in day mode (Kelvin)                                                                         |                                                                                                                         |
| `tTimeButtonPulse`        | `TIME`                                    | TIME#1s0ms                                             | Duration of the pulse at the output if the assigned button was pressed briefly                                                                         |                                                                                                                         |
| `tPCTimeShort`            | `TIME`                                    | TIME#5s0ms                                             | Interval time of the scan process for determining the product code (short duration, device not yet detected)                                           |                                                                                                                         |
| `tPCTimeLong`             | `TIME`                                    | TIME#1m0s0ms                                           | Interval time of the scan process for determining the product code (long duration, device detected)                                                    |                                                                                                                         |
| `tTimeUpdateConfig`       | `TIME`                                    | TIME#0ms                                               | Update interval for the processes influenced by the input `xUpdateConfig` influenced                                                                   |                                                                                                                         |
| `tTimeUpdateSetp`         | `TIME`                                    | TIME#45s0ms                                            | Update interval for the processes influenced by the input `xUpdateSetp` influenced                                                                     |                                                                                                                         |
| `tTimeUpdateStates`       | `TIME`                                    | TIME#500ms                                             | Update interval for the processes influenced by the input `xUpdateStates` influenced                                                                   |                                                                                                                         |
| `tTimeUpdateActual`       | `TIME`                                    | TIME#3s0ms                                             | Update interval for the processes influenced by the input `xUpdateActual` influenced                                                                   |                                                                                                                         |
