# 11.24 Siemens S7-1200 Ethernet

Supported Series: Siemens S7-1200

**HMI Setting**

| **Items**       | **Settings**    | **Note** |
| --------------- | --------------- | -------- |
| Protocol        | Siemens S7-1200 |          |
| Connection      | Ethernet        |          |
| Port No.        | 102             |          |
| PLC station No. | 2               |          |

**Address list**

| **Type**       | **Device register** | **HMI register** | **Format**                                       | **Range**                                                                          | **Note** |
| -------------- | ------------------- | ---------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------- | -------- |
| **Bit**        |                     |                  |                                                  |                                                                                    |          |
| I              | I                   | M d.o            | <p>d:0--9999</p><p>o:0-7</p>                     |                                                                                    |          |
| Q              | Q                   | Q d.o            | <p>d:0--9999</p><p>o:0-7</p>                     |                                                                                    |          |
| M              | M                   | M d.o            | <p>d:0--9999</p><p>o:0-7</p>                     |                                                                                    |          |
| DB0.DB-DB99.DB | DBxDB               | DBxDB nndddd.o   | <p>nn:0-9999,</p><p>dddd:0-9999,</p><p>o:0-7</p> | <p>nn: DB No.</p><p>dddd: address value</p><p>o: digit address</p>                 |          |
| **Word**       |                     |                  |                                                  |                                                                                    |          |
| M              | MB                  | MB d             | d:0-99999                                        |                                                                                    |          |
| M              | MW                  | MW d             | d:0-99999                                        | <p>MW0=MB(0~~1)</p><p>MW2=MB(2~~3)</p><p>Address value is a multiple of 2</p>      |          |
| M              | MD                  | MD d             | d:0-99999                                        | <p>MD0=MB(0~~3)</p><p>MD4=MB(4~~7)</p><p>Address value is a multiple of 4</p>      |          |
| I              | IW                  | IW d             | d:0-99999                                        |                                                                                    |          |
| Q              | QW                  | QW d             | d:0-99999                                        |                                                                                    |          |
| DB0.DB-DB99.DB | DBxDBB              | DBxDBB nndddd    | <p>nn: 0-9999</p><p>dddd:0-9999</p>              | <p>nn: DB No.</p><p>dddd: address value</p>                                        |          |
| DB0.DB-DB99.DB | DBxDBW              | DBxDBW nndddd    | <p>nn:0-9999</p><p>dddd:0-9999</p>               | <p>nn: DB No.</p><p>dddd: address value</p><p>Address value is a multiple of 2</p> |          |
| DB0.DB-DB99.DB | DBxDBD              | DBxDBD nndddd    | <p>nn:0-9999</p><p>dddd:0-9999</p>               | <p>nn: DB No.</p><p>dddd: address value</p><p>Address value is a multiple of 4</p> |          |

**Communication settings**

11\) Enable HMI Ethernet in \[Project Settings];

![](/files/-LvJ_7yz9Qjv6JqgzN2G)

12\) Set PLC IP in \[Device IP] settings;

![](/files/-LvJ_7z-D9XwZfcteKBR)

✎**Note:**

1\) The S7-1200 supports simultaneous connection of three devices, so the driver supports simultaneous access to PLC by three touch screens.

2\) HMI access PLC, use S7 protocol, access PLC TSAP 02.01 (s7-1200 PROFINET interface only supports three connections, the default support), detailed reference to the system manual of S7-1200.

**PLC settings**

1\) Add BD

Please uncheck \[Symbolic access only] option;

![](/files/-LvJ_7z01enMhleU01Yb)

2\) Address settings, using BD2 as example.

DB×DBB2xxxx, DB×DBW2xxxx, DB×DBD2xxxx for accessing data of DB2 in B1.

2 represent DB block number

xxxx represent address

**Such as:**

DBxDBB20000 = DB2.DBB0

DBxDBW20004 = DB2.DBW4

![](/files/-LvJ_7z16CoiOBcRj7a_)

**How to connect with S7-1200 Firmware V4.0**

1\) PLC configuration

a) Double click \[device configuration] in Siemens via software

b) Double click \[protection] to enter protection configuration screen

![](/files/-LvJ_7z2nreXTrwzsN6p)

c) Check \[Permit access with PUT / GET communication from remote partner (PLC, HMI, OPC, ...)]

![](/files/-LvJ_7z3AiFgRgzKo59I)

2\) DB settings

Right click \[DB], select \[properties]

Uncheck \[optimized block access]

**Communication cable**

![](/files/-LvJ_7z4nJ6Q9Q85DU_O)


---

# 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://wecon.gitbook.io/pistudio-manual/11.-plc-protocols/siemens-s7-1200-ethernet.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.
