97BPLC concepts
4.4 Data types
S7-1200 Programmable controller
96
System Manual, 11/2011, A5E02486680-05
Hexadecimal code
Data type
Description
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- 30 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.7.3
"Variant" pointer data type
The data type Variant is 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- 31 Properties of the Variant pointer
Length
(Byte)
Representation
Format
Example entry
Operand
MyTag
Symbolic
DB_name.Struct_name.element_name
MyDB.Struct1.pressure1
Operand
%MW10
0
Absolute
DB_number.Operand Type Length
P#DB10.DBX10.0 INT 12
4.4.8
Accessing a "slice" of a tagged data type
PLC tags and data block tags can be accessed at the bit, byte, or word level depending on
their size. The syntax for accessing such a data slice is as follows:
●
"<PLC tag name>".xn (bit access)
●
"<PLC tag name>".bn (byte access)
●
"<PLC tag name>".wn (word access)
●
"<Data block name>".<tag name>.xn (bit access)