Variant" Pointer Data Type - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

PLC concepts
4.4 Data types
Table 4- 39
Hexadecimal code
b#16#00
b#16#01
b#16#02
b#16#03
b#16#04
b#16#05
b#16#37
b#16#35
b#16#34
b#16#06
b#16#07
b#16#36
b#16#08
b#16#0B
b#16#13
Table 4- 40
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.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
Representation
(Byte)
0
Symbolic
Absolute
120
Data type encoding in the ANY pointer
Data type
Null
Bool
Byte
Char
Word
Int
SInt
UInt
USInt
DWord
DInt
UDInt
Real
Time
String
Memory area encoding in the ANY pointer:
Memory area
I
Q
M
DBX
DIX
L
V
Format
Operand
DB_name.Struct_name.element_name
Operand
DB_number.Operand Type Length
Description
Null pointer
Bits
Bytes, 8 Bits
8-bit character
16-bit-word
16-bit-integer
8-bit-integer
16-bit unsigned integer
8-bit unsigned integer
32-bit double word
32-bit double integer
32-bit-unsigned double integer
32-Bit floating point
Time
Character string
Description
Input memory area
Output memory area
Marker memory area
Data block
Instance data block
Local data
Previous local data
Example entry
MyTag
MyDB.Struct1.pressure1
%MW10
P#DB10.DBX10.0 INT 12
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents