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
- Open the project in TIA Portal and open Device configuration for the CPU.
- Select the CPU and, in the Inspector window, go to Properties > General > Protection & Security > Connection mechanisms. Older S7-1200 firmware calls the section Protection.
- Tick "Permit access with PUT/GET communication from remote partner".
Step 2: Give the data block standard access
- In the project tree, right-click the data block and choose Properties.
- Under Attributes, untick "Optimized block access" and confirm.
- 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:
| Type | Size | Example offset |
|---|---|---|
| Bool | 1 bit | 8.0 |
| Int / UInt | 2 bytes | 10.0 |
| DInt / Real | 4 bytes | 12.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.