PLC concepts
4.4 Data types
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
111
● Floating-point Real (Page 112): Real (32-bit Real or floating-point value), LReal (64-bit
Real or floating-point value)
● Time and Date (Page 113): Time (32-bit IEC time value), Date (16-bit date value), TOD
(32-bit time-of-day value), DTL (12-byte date-and-time structure)
● Character and String (Page 114): Char (8-bit single character), String (variable-length
string of up to 254 characters)
● Array (Page 116)
● Data structure (Page 117): Struct
● PLC Data type (Page 117)
● Pointers (Page 118): Pointer, Any, Variant
Although not available as data types, the following BCD numeric format is supported by the
conversion instructions.
Table 4- 25 Size and range of the BCD format
Bool, Byte, Word, and DWord data types
Table 4- 26 Bit and bit sequence data types
Bool 1
I1.0
Q0.1
M50.7
DB1.DBX2.3
Hexadecimal 16#0 or 16#1 16#1
Byte 8
IB2
MB10
DB1.DBB4
Tag_name
Word 16
2#0 to 2#1111111111111111
MW10
DB1.DBW2
Tag_name
Hexadecimal W#16#0 to W#16#FFFF,
16#0 to 16#FFFF
W#16#F0F0, 16#F0F0
DWord 32 Binary 2#0 to
2#111111111111111111111111
2#111100001111111100
001111
MD10
DB1.DBD8
Tag_name