Specifications

2 S7-1200/1500 Innovations
2.6 Optimized blocks
Programming Guideline for S7-1200/1500
V1.2, Entry ID: 81318674
11
Copyright
Siemens AG 2014 All rights reserved
2.6.2 S7-1500: Setup of optimized blocks
Figure 2-6: Optimized block of S7-1500
B
y
t
e
s
Bits
0 1 2 3 4 5 6 7
W1
W2
B1
X1
X2
X3
X4
B
y
t
e
s
Bits
0 1 2 3 4 5 6 7
0
X1
1
B1
2
X2 X3
3
4
W1
5
6
X4
7
8
W2
9
Standard block
Optimized block
Optimized
Standard
Reserve
Figure 2-7: Memory space assignment in optimized blocks
B
y
t
e
s
4 Byte are always read at once
0
DW DW W B W W
16
W W W BBBBXXX
32
48
64
80
96
102
DW DW DW W W
128
W BXX
144
Reserve
Reserve
1
2
Optimized
1. Structures are stored separately and can thus be copied as one block.
2. Retentive data are stored in a separate area and can be copied as one block.
In the event of a power failure, these data are stored CPU-internally. "MRES"
resets these data to the start values stored in the load memory.
Properties
No data gaps are formed since larger tags are located at the beginning of the
block and smaller ones at the end.
Fast access due the best possible storage in the processor (All tags are stored
in a way so that the processor of the S7-1500 can directly read or write all tags
with just one machine command).
Boolean tags are stored as byte for faster access. The controller therefore
does not have to mask the access.