PLC concepts
4.4 Data types
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
119
Table 4- 37 Memory area encoding in the Pointer data:
The pointer data type ANY ("Any") points to the beginning of a data area and specifies its
length. The ANY pointer uses 10 bytes in memory and can include the following information:
● Data type: Data type of the data elements
● Repeat factor: Number of data elements
● DB Number: Data block in which data elements are stored
● Storage area: Memory area of the CPU, in which the data elements are stored
● Start address: "Byte.Bit" starting address of the data
The following image shows the structure of the ANY pointer:
A pointer can not detect ANY structures. It can only be assigned to local variables.
Table 4- 38 Format and examples of the ANY pointer:
P#Data_block.Memory_area
P#DB 11.DBX 20.0 INT 10 10 words in global DB 11
P#Memory_area Data_address
Type Number
10 bytes starting from MB 20.0