EasyManua.ls Logo

Siemens S7-1200 - Variant Pointer Data Type

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PLC concepts
4.4 Data types
S7-1200 Programmable controller
120 System Manual, 03/2014, A5E02486680-AG
Table 4- 39 Data type encoding in the ANY pointer
Hexadecimal code
Data type
Description
b#16#00
Null
Null pointer
b#16#01
Bool
Bits
b#16#02
Byte
Bytes, 8 Bits
b#16#03
Char
8-bit character
b#16#04
Word
16-bit-word
b#16#05
Int
16-bit-integer
b#16#37
SInt
8-bit-integer
b#16#35
UInt
16-bit unsigned integer
b#16#34
USInt
8-bit unsigned integer
b#16#06
DWord
32-bit double word
b#16#07
DInt
32-bit double integer
b#16#36
UDInt
32-bit-unsigned double integer
b#16#08
Real
32-Bit floating point
b#16#0B
Time
Time
b#16#13
String
Character string
Table 4- 40 Memory area encoding in the ANY pointer:
Hexadecimal code
Memory area
Description
b#16#81
I
Input memory area
b#16#82
Q
Output memory area
b#16#83
M
Marker memory area
b#16#84 DBX Data block
b#16#85
DIX
Instance data block
b#16#86 L Local data
b#16#87
V
Previous local data
4.4.9.3
"Variant" pointer data type
The data type Variant can point to variables of different data types or parameters. The
Variant pointer can point to structures and individual structural components. The Variant
pointer does not occupy any space in memory.
Table 4- 41 Properties of the Variant pointer
Length
(Byte)
Representation
Format
Example entry
0 Symbolic
Operand
MyTag
DB_name.Struct_name.element_name
MyDB.Struct1.pressure1
Absolute
Operand
%MW10
DB_number.Operand Type Length
P#DB10.DBX10.0 INT 12

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals