> For the complete documentation index, see [llms.txt](https://docs.dnt.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dnt.de/dnt-lw-wsci/kommunikationsprotokoll/4.-sensoren-und-anschlussklemmen.md).

# 4. Sensoren und Anschlussklemmen

## 4.1 Sabotagekontakt-Konfiguration

{% tabs %}
{% tab title="GET SABOTAGE CONTACT CONFIG" %}
Dieser Befehl fordert die Konfiguration des Sabotagekontakts an.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x0D` (Command ID) |

**Uplink**

|     Byte     | Bit(s) |           Value          |
| :----------: | :----: | :----------------------: |
|       0      |   7:0  |    `0x0D` (Command ID)   |
|       1      |   7:0  | `ID_SABOTAGE_CONTACT_EN` |
| {% endtab %} |        |                          |

{% tab title="SET SABOTAGE CONACT CONFIG" %}
Mit diesem Befehl konfigurieren Sie den Sabotagekontakt

**Beispiel**

```
0x0C 00 = Sabotagekontakt deaktiviert
```

**Downlink**

|      Byte     | Bit(s) |           Value          |
| :-----------: | :----: | :----------------------: |
|       0       |   7:0  |    `0x0C` (Command ID)   |
|       1       |   7:0  | `ID_SABOTAGE_CONTACT_EN` |
|  {% endtab %} |        |                          |
| {% endtabs %} |        |                          |

<details>

<summary>ID_SABOTAGE_CONTACT_EN</summary>

|   Eigenschaft  |                                 Wert                                 |
| :------------: | :------------------------------------------------------------------: |
|  Beschreibung  |            Aktiviert oder deaktiviert den Sabotagekontakt.           |
|      Größe     |                                 1 Bit                                |
|  Wertebereich  |                                  0–1                                 |
|  Standardwert  |                                   1                                  |
| Interpretation | <p><code>0</code> = deaktiviert</p><p><code>1</code> = aktiviert</p> |

</details>

***

## 4.2 Hall-Sensor Zustand

{% tabs %}
{% tab title="GET HALL SENSOR STATE" %}
Fragt den aktuellen Zustand des Hall-Sensors ab.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x0E` (Command ID) |

**Uplink**

|      Byte     | Bit(s) |          Value         |
| :-----------: | :----: | :--------------------: |
|       0       |   7:0  |   `0x0E` (Command ID)  |
|       1       |   7:1  |          Res.          |
|       1       |    0   | `ID_HALL_SENSOR_STATE` |
|  {% endtab %} |        |                        |
| {% endtabs %} |        |                        |

<details>

<summary>ID_HALL_SENSOR_STATE</summary>

|   Eigenschaft  |                                          Wert                                         |
| :------------: | :-----------------------------------------------------------------------------------: |
|  Beschreibung  |                                Zustand des Hall-Sensors                               |
|      Größe     |                                         1 Bit                                         |
|  Wertebereich  |                                          0–1                                          |
|  Standardwert  |                                           0                                           |
| Interpretation | <p>0 = <code>Hall Sensor idle</code></p><p>1 = <code>Hall Sensor triggered</code></p> |

</details>

***

## 4.3 Hall-Sensor-Konfiguration

{% tabs %}
{% tab title="Get Hall Sensor Config" %}
Liest die Konfiguration des Hall-Sensors aus.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x10` (Command ID) |

**Uplink**

|     Byte     | Bit(s) |        Value        |
| :----------: | :----: | :-----------------: |
|       0      |   7:0  | `0x10` (Command ID) |
|       1      |   7:1  |         Res.        |
|       1      |    0   | `ID_HALL_SENSOR_EN` |
| {% endtab %} |        |                     |

{% tab title="Set Hall Sensor Config" %}
Mit diesem Befehl konfigurieren Sie den Hall-Sensor

**Beispiel**

```
0x0F 01 = Hall-Sensor aktiviert
```

**Downlink**

|      Byte     | Bit(s) |        Value        |
| :-----------: | :----: | :-----------------: |
|       0       |   7:0  | `0x0F` (Command ID) |
|       1       |   7:6  |         Res.        |
|       1       |    0   | `ID_HALL_SENSOR_EN` |
|  {% endtab %} |        |                     |
| {% endtabs %} |        |                     |

<details>

<summary>ID_HALL_SENSOR_EN</summary>

|   Eigenschaft  |                                 Wert                                 |
| :------------: | :------------------------------------------------------------------: |
|  Beschreibung  |              Aktiviert oder deaktiviert den Hall-Sensor.             |
|      Größe     |                                 1 Bit                                |
|  Wertebereich  |                                  0–1                                 |
|  Standardwert  |                                   1                                  |
| Interpretation | <p><code>0</code> = deaktiviert</p><p><code>1</code> = aktiviert</p> |

</details>

***

## 4.4 Zustand der Anschlussklemmen

{% tabs %}
{% tab title="GET INPUT CLAMP STATE" %}
Fragt den aktuellen Zustand der Anschlussklemmen für externen Magnetkontakt /&#x20;Glasbruchsensor ab.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x11` (Command ID) |

**Uplink**

|      Byte     | Bit(s) |          Value         |
| :-----------: | :----: | :--------------------: |
|       0       |   7:0  |   `0x11` (Command ID)  |
|       1       |   7:1  |          Res.          |
|       1       |    0   | `ID_INPUT_CLAMP_STATE` |
|  {% endtab %} |        |                        |
| {% endtabs %} |        |                        |

<details>

<summary>ID_INPUT_CLAMP_STATE</summary>

|   Eigenschaft  |                                          Wert                                         |
| :------------: | :-----------------------------------------------------------------------------------: |
|  Beschreibung  |                               Zustand der Eingangsklemme                              |
|      Größe     |                                         1 Bit                                         |
|  Wertebereich  |                                          0–1                                          |
|  Standardwert  |                                           0                                           |
| Interpretation | <p>0 = <code>Input Clamp idle</code></p><p>1 = <code>Input Clamp triggered</code></p> |

</details>

***

## 4.5 Konfiguration der Anschlussklemmen

{% tabs %}
{% tab title="Get Input Clamp Config" %}
Liest die Konfiguration der Anschlussklemmen aus.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x13` (Command ID) |

**Uplink**

|     Byte     | Bit(s) |        Value        |
| :----------: | :----: | :-----------------: |
|       0      |   7:0  | `0x13` (Command ID) |
|       1      |   7:0  | `ID_INPUT_CLAMP_EN` |
| {% endtab %} |        |                     |

{% tab title="Set Input Clamp Config" %}
Konfiguriert die Anschlussklemmen.

**Beispiel**

```
0x12 01 = Anschlussklemmen aktiviert
```

**Downlink**

|      Byte     | Bit(s) |        Value        |
| :-----------: | :----: | :-----------------: |
|       0       |   7:0  | `0x12` (Command ID) |
|       1       |   7:0  | `ID_INPUT_CLAMP_EN` |
|  {% endtab %} |        |                     |
| {% endtabs %} |        |                     |

<details>

<summary>ID_INPUT_CLAMP_EN</summary>

|   Eigenschaft  |                                 Wert                                 |
| :------------: | :------------------------------------------------------------------: |
|  Beschreibung  |           Aktiviert oder deaktiviert die Anschlussklemmen.           |
|      Größe     |                                 1 Bit                                |
|  Wertebereich  |                                  0–1                                 |
|  Standardwert  |                                   1                                  |
| Interpretation | <p><code>0</code> = deaktiviert</p><p><code>1</code> = aktiviert</p> |

</details>

## 4.6 Sensortyp an den Anschlussklemmen

{% tabs %}
{% tab title="GET INPUT CLAMP SENSOR TYPE" %}
Liest den Sensortyp an den Anschlussklemmen aus.

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x15` (Command ID) |

**Uplink**

<table><thead><tr><th align="center">Byte</th><th width="182" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x15</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_INPUT_CLAMP_SENSOR_TYPE</code></td></tr></tbody></table>
{% endtab %}

{% tab title="SET INPUT CLAMP SENSOR TYPE" %}
Setzt den Sensortyp an den Anschlussklemmen.

**Beispiel**

```
0x14 01 = Glasbruchsensor
```

**Downlink**

<table><thead><tr><th align="center">Byte</th><th width="189" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x14</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_INPUT_CLAMP_SENSOR_TYPE</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_INPUT_CLAMP_SENSOR_TYPE</summary>

|   Eigenschaft  |                                                   Wert                                                   |
| :------------: | :------------------------------------------------------------------------------------------------------: |
|  Beschreibung  |                       Definiert den verwendeten Sensortyp an den Anschlussklemmen.                       |
|      Größe     |                                                  `2 Bit`                                                 |
|  Wertebereich  |                                                   `0–2`                                                  |
|  Standardwert  |                                                    `0`                                                   |
| Interpretation | <p><code>0</code> = Magnetkontakt</p><p><code>1</code> = Glasbruchsensor</p><p><code>2</code> = Res.</p> |

</details>

***

## 4.7 Filterzeit der Anschlussklemmen

{% tabs %}
{% tab title="GET INPUT CLAMP FILTER TIME" %}
Dieser Befehl ruft das aktuelle Zeitintervall ab, in dem der Status der Anschlussklemmen\
gesendet wird

**Downlink**

| Byte | Bit(s) |        Value        |
| :--: | :----: | :-----------------: |
|   0  |   7:0  | `0x16` (Command ID) |

**Uplink**

<table><thead><tr><th width="193" align="center">Byte</th><th width="184" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x16</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_INPUT_CLAMP_SENSOR_FILTER_TIME</code></td></tr></tbody></table>
{% endtab %}

{% tab title="SET INPUT CLAMP FILTER TIME" %}
Mit diesem Befehl konfigurieren Sie das Zeitintervall für die Anschlussklemmen.

**Beispiel**

```
0x17 02 = 60 Sek. Filterzeit
```

**Downlink**

<table><thead><tr><th width="135" align="center">Byte</th><th width="237" align="center">Bit(s)</th><th align="center">Value</th></tr></thead><tbody><tr><td align="center">0</td><td align="center">7:0</td><td align="center"><code>0x17</code> (Command ID)</td></tr><tr><td align="center">1</td><td align="center">7:0</td><td align="center"><code>ID_INPUT_CLAMP_SENSOR_FILTER_TIME</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

<details>

<summary>ID_INPUT_CLAMP_SENSOR_FILTER_TIME</summary>

|   Eigenschaft  |                                                                                          Wert                                                                                         |
| :------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|  Beschreibung  | Definiert den Zeitraum in Sekunden, in dem der&#xD; Produktfilter nach einem Glasbruch arbeitet in&#xD; 30 Sekunden Schritten. Ein Glasbruch wird in&#xD; jedem Fall sofort gemeldet. |
|      Größe     |                                                                                         8 Bit                                                                                         |
|  Wertebereich  |                                                                                         1–255                                                                                         |
|  Standardwert  |                                                                                           2                                                                                           |
| Interpretation |                                                                                    `[s] = x * 30s`                                                                                    |

</details>


---

# 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://docs.dnt.de/dnt-lw-wsci/kommunikationsprotokoll/4.-sensoren-und-anschlussklemmen.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.
