Pointer Data Types; Pointer" Pointer Data Type - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
PLC concepts
4.4 Data types
4.4.9

Pointer data types

The pointer data types (Pointer, Any, and Variant) can be used in the block interface tables
for FB and FC code blocks. You can select a pointer data type from the block interface data
type drop-lists.
The Variant data type is also used for instruction parameters.
4.4.9.1

"Pointer" pointer data type

The data type Pointer points to a particular variable. It occupies 6 bytes (48 bits) in memory
and can include the following information:
● DB number or 0 if the data is not stored in a DB
● Storage area in the CPU
● Variable address
Depending on the instruction, you can declare the following three types of pointers:
● Area-internal pointer: contains data on the address of a variable
● Area-crossing pointer: contains data on the memory area and the address of a variable
● DB-pointer: contains a data block number and the address of a variable
Table 4- 36
Type
Area-internal pointer
Area-crossing pointer
DB-pointer
You can enter a parameter of type Pointer without the prefix (P #). Your entry will be
automatically converted to the pointer format.
118
Pointer types:
Format
P#Byte.Bit
P#Memory_area_Byte.Bit
P#Data_block.Data_element
Example entry
P#20.0
P#M20.0
P#DB10.DBX20.0
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents