PLC concepts
5.4 Data types
S7-1200 Programmable controller
126 System Manual, V4.2, 09/2016, A5E02486680-AK
Although not available as data types, the following BCD numeric format is supported by the
conversion instructions:
Table 5- 28 Size and range of the BCD format
BCD32 32 -9999999 to 9999999 1234567, -1234567
Bool, Byte, Word, and DWord data types
Table 5- 29 Bit and bit sequence data types
Bool 1
I1.0
Q0.1
M50.7
DB1.DBX2.3
Tag_name
Binary 2#0 or 2#1 2#0
Byte 8
IB2
MB10
DB1.DBB4
Tag_name
Hexadecimal B#16#0 to B#16#FF, 16#0 to
B#16#F, 16#F
Word 16
2#0 to 2#1111_1111_1111_1111
MW10
DB1.DBW2
Tag_name
Hexadecimal W#16#0 to W#16#FFFF,
W#16#F1C0, 16#A67B
DWord 32 Binary 2#0 to
2#1111_1111_1111_1111_1111
2#1101_0100_1111_1110
_1000_1100
MD10
DB1.DBD8
Tag_name
Unsigned integer* 0 to 4_294_967_295 15_793_935
Signed integer* -2_147_483_648 to
-400000
Octal 8#0 to 8#37_777_777_777 8#74_177_417
Hexadecimal DW#16#0000_0000 to
DW#16#FFFF_FFFF,
16#0000_0000 to
DW#16#20_F30A,
16#B_01F6
* The underscore "_" is a thousands separator to enhance readability for numbers greater than eight digits.