EasyManua.ls Logo

Siemens SIMATIC S7-1200

Siemens SIMATIC S7-1200
1614 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
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
Format
Size (bits)
Numeric Range
Constant Entry Examples
BCD16
16
-999 to 999
123, -123
BCD32 32 -9999999 to 9999999 1234567, -1234567
5.4.1
Bool, Byte, Word, and DWord data types
Table 5- 29 Bit and bit sequence data types
Data
type
Bit
size
Number
type
Number
range
Constant
examples
Address
examples
Bool 1
Boolean
FALSE or TRUE
TRUE
I1.0
Q0.1
M50.7
DB1.DBX2.3
Tag_name
Binary 2#0 or 2#1 2#0
Unsigned integer
0 or 1
1
Octal
8#0 or 8#1
8#1
Hexadecimal
16#0 or 16#1
16#1
Byte 8
Binary
2#0 to 2#1111_1111
2#1000_1001
IB2
MB10
DB1.DBB4
Tag_name
Unsigned integer
0 to 255
15
Signed integer
-128 to 127
-63
Octal
8#0 to 8#377
8#17
Hexadecimal B#16#0 to B#16#FF, 16#0 to
16#FF
B#16#F, 16#F
Word 16
Binary
2#0 to 2#1111_1111_1111_1111
2#1101_0010_1001_0110
MW10
DB1.DBW2
Tag_name
Unsigned integer
0 to 65535
61680
Signed integer
-32768 to 32767
72
Octal
8#0 to 8#177_777
8#170_362
Hexadecimal W#16#0 to W#16#FFFF,
16#0 to 16#FFFF
W#16#F1C0, 16#A67B
DWord 32 Binary 2#0 to
2#1111_1111_1111_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
2_147_483_647
-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
16#FFFF_FFFF
DW#16#20_F30A,
16#B_01F6
* The underscore "_" is a thousands separator to enhance readability for numbers greater than eight digits.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals