# 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];

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7yz9Qjv6JqgzN2G%2F0.png?generation=1575524537265868\&alt=media)

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

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z-D9XwZfcteKBR%2F1.png?generation=1575524537249331\&alt=media)

✎**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;

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z01enMhleU01Yb%2F2.png?generation=1575524537301989\&alt=media)

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

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z16CoiOBcRj7a_%2F3.png?generation=1575524537297155\&alt=media)

**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

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z2nreXTrwzsN6p%2F4.png?generation=1575524537271533\&alt=media)

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

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z3AiFgRgzKo59I%2F5.png?generation=1575524537311202\&alt=media)

2\) DB settings

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

Uncheck \[optimized block access]

**Communication cable**

![](https://3950998874-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpi-series-user-manual%2F-LvJZYQrWCdxcwNZkQzb%2F-LvJ_7z4nJ6Q9Q85DU_O%2F6.png?generation=1575524537417280\&alt=media)
