Table 4- 37
Hexadecimal code
b#16#81
b#16#82
b#16#83
b#16#84
b#16#85
b#16#86
b#16#87
4.4.9.2
"Any" pointer data type
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
P#Data_block.Memory_area
Data_address Type Number
P#Memory_area Data_address
Type Number
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Memory area encoding in the Pointer data:
Data type
I
Q
M
DBX
DIX
L
V
Format and examples of the ANY pointer:
Entry example
P#DB 11.DBX 20.0 INT 10
P#M 20.0 BYTE 10
P#I 1.0 BOOL 1
PLC concepts
4.4 Data types
Description
Input memory area
Output memory area
Marker memory area
Data block
Instance data block
Local data
Previous local data
Description
10 words in global DB 11
starting from DBB 20.0
10 bytes starting from MB 20.0
Input I1.0
119
Need help?
Do you have a question about the S7-1200 and is the answer not in the manual?
Questions and answers