# Addressing

For addressing a single value, use the following address format:&#x20;

```
AREA,DATA_TYPE START_BYTE, where AREA indicates the data area,
DATA_TYPE indicates the data type,
and START_BYTE indicates the starting byte of data
```

To address one of the bits of the data byte, you must use the following address format:&#x20;

```
AREA,X START_BYTE.BIT_INDEX, where AREA indicates the data area,
START_BYTE indicates the starting byte of data,
and BIT_INDEX indicates the bit number in a byte (from 0 to 7)
```

For addressing an array of values, use the following address format:&#x20;

```
AREA,DATA_TYPE START_BYTE[LENGTH], where AREA indicates the data area,
DATA_TYPE indicates the data type,
START_BYTE indicates the starting byte of data,
and LENGTH indicates the number of elements in the array
```

The table below maps data areas to supported address ranges, data types and access modes.

| **Data Area** | **Address Range** | **Data Type**                                                                                                                                          | **Access Mode** |
| ------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------- |
| DB, M, Q, I   | 0 - 65535         | BOOL, BYTE, BYTE ARRAY, WORD, WORD ARRAY, INT, INT ARRAY, DWORD, DWORD ARRAY, DINT, DINT ARRAY, REAL, REAL ARRAY, CHAR ARRAY, DATETIME, DATETIME ARRAY | Read/Write      |

The following are examples of available addresses:&#x20;

* DB1,INT0
* DB7,DBX99.5
* M0,X0.1
* DB10,REAL2\[50]
* DB111,DT0
* I,X10.3
* Q,WORD4
* DB12,CHAR0\[6]


---

# Agent Instructions: 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:

```
GET https://docs.monokot.io/tags-and-devices/siemens-connectivity/addressing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
