How to Enable PUT/GET on an S7-1200 or S7-1500

An S7-1200 or S7-1500 will not answer an outside S7 client until you change two settings in TIA Portal. This guide covers both, how to find byte offsets afterwards, and what the change means for security.

Updated · Gixtronix Technologies

Why the settings are needed

Tools that use the S7 protocol, including SignalStream Studio and many third-party HMIs, read memory with PUT/GET requests and address data by DB number and byte offset. S7-1200 and S7-1500 CPUs refuse PUT/GET by default, and data blocks created in TIA Portal use optimized access, which has no fixed byte offsets to read. You need to allow PUT/GET on the CPU and give the data blocks you want to read standard (non-optimized) access.

S7-300 and S7-400 CPUs do not have either setting: they accept PUT/GET and their blocks always have byte offsets.

Step 1: Allow PUT/GET on the CPU

  1. Open the project in TIA Portal and open Device configuration for the CPU.
  2. Select the CPU and, in the Inspector window, go to Properties > General > Protection & Security > Connection mechanisms. Older S7-1200 firmware calls the section Protection.
  3. Tick "Permit access with PUT/GET communication from remote partner".

Step 2: Give the data block standard access

  1. In the project tree, right-click the data block and choose Properties.
  2. Under Attributes, untick "Optimized block access" and confirm.
  3. Compile the block. An Offset column now appears in the block editor.

Changing access changes the block's layout, and downloading it can reset its values to their start values. On a running line, a safer pattern is a new, non-optimized DB just for monitoring, filled with MOVE instructions from the values you care about. The production blocks stay untouched.

Step 3: Download to the CPU

The PUT/GET setting is part of the hardware configuration, so download both the hardware configuration and the changed blocks. A hardware download normally needs the CPU in STOP, so plan it for a stop.

Step 4: Find the byte offsets

Open the compiled, non-optimized DB. The Offset column gives each value's start byte. A Bool shows as byte.bit, so 8.0 is byte 8, bit 0. Sizes follow the data type:

TypeSizeExample offset
Bool1 bit8.0
Int / UInt2 bytes10.0
DInt / Real4 bytes12.0
String[20]22 bytes (2 header bytes + 20 characters)16.0

Step 5: Rack and slot

  • S7-1200 and S7-1500: rack 0, slot 1.
  • S7-300: rack 0, slot 2.
  • S7-400: depends on the chassis. Read the CPU's slot from the hardware configuration.

What allowing PUT/GET means for security

PUT/GET has no password. Once it is allowed, any device that can reach the CPU on TCP port 102 can read and write its data blocks and markers. SignalStream Studio only reads, but the CPU cannot tell a read-only client from any other. Keep the PLC on a separated control network or VLAN, and allow port 102 only from the PCs that need it.

Common errors after the change

  • "Function not available": PUT/GET is still off, or the hardware configuration was not downloaded.
  • "Address out of range": the offset is past the end of the DB, the DB number is wrong, or the block is still optimized.
  • Cannot connect: check the IP address, that TCP port 102 is not blocked, and the rack and slot.

Reading it in SignalStream Studio

In Studio's Siemens S7 wizard, enter the IP, rack and slot, choose Data Block, then the DB number, byte offset and data type (for Bool, the bit). Test Poll reads the value live, so a wrong offset is obvious before you save. Studio never writes to the CPU.

Frequently asked questions

Where is the PUT/GET setting in TIA Portal?

In the CPU's properties: General > Protection & Security > Connection mechanisms (Protection on older S7-1200 firmware). Tick "Permit access with PUT/GET communication from remote partner" and download the hardware configuration.

Do I have to turn off optimized access on every data block?

No, only on the blocks an external tool reads. Many plants add one non-optimized DB for monitoring and copy values into it, leaving production blocks optimized.

Is enabling PUT/GET a security risk?

It allows unauthenticated reads and writes from anything that reaches the CPU on TCP port 102. That is acceptable on a separated control network with a firewall, and not on a flat office network.

Do S7-300 and S7-400 need PUT/GET enabled?

No. They have no such setting; S7 protocol access works out of the box. You only need the IP, rack and slot.

Can I read symbolic tag names instead of offsets?

Not over PUT/GET. The S7 protocol addresses memory by DB number and byte offset. Reading symbolic names on S7-1200/1500 needs OPC UA, which those CPUs can also provide.

See your Siemens S7 values live in minutes.

SignalStream Studio is free forever on one Windows PC and only reads, so it is safe on production. How the Siemens S7 connector works →