# Access to DBs area in S7-1200/S7-1500

To access a DB in S7-1200/S7-1500 some additional setting PLC-side are needed:

* Only global DBs can be accessed
* The optimized block access must be turned off
* The access level must be “full” and the “connection mechanism” must allow GET/PUT

The setup of access to DBs in TIA Portal V15 is described below.

Right click on the DB and select *Properties...* item.

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FlSEzBk3elybiclyYHRbc%2FAccess%20to%20a%20DBs%20area%20in%20S7-1200_S7-1500%20\(360034746831\)_image-0.png?alt=media\&token=1847c967-0bc8-42cb-a0b0-77c10a047433)

Go to *Attributes* and uncheck *Optimize block access*.

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FI9e29jzUQ7A3NvtN3KDv%2FAccess%20to%20a%20DBs%20area%20in%20S7-1200_S7-1500%20\(360034746831\)_image-1.png?alt=media\&token=9d2d636f-ba15-4f94-917b-bdb58690af2a)

Right click on the CPU and select menu item *Properties…*

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FglkVNHAzxNNXskFVdgYH%2FAccess%20to%20a%20DBs%20area%20in%20S7-1200_S7-1500%20\(360034746831\)_image-2.png?alt=media\&token=e8662f78-9260-4449-8fba-7cfa2255fe26)

Select *Protection & Security* and select *Full access (no protection)* as shown below.

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FGEHU5StfZM4tBl5vaGKx%2FAccess%20to%20a%20DBs%20area%20in%20S7-1200_S7-1500%20\(360034746831\)_image-3.png?alt=media\&token=d4419a31-b415-454d-bb13-4ee5f799c20b)

Go to *Connection mechanisms* and check *Permit access with PUT/GET communication from remote partner*.

![](https://4282443477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3cwznMbQcEQxtnjiRDYX%2Fuploads%2FB87tHo3Hu3B95tSWRYW9%2FAccess%20to%20a%20DBs%20area%20in%20S7-1200_S7-1500%20\(360034746831\)_image-4.png?alt=media\&token=e65f3f8c-f133-4890-acca-906d996be5fd)

For changes to take effect, download hardware and program to the PLC.
