EasyManua.ls Logo

Siemens S7-1200 - Module replacement

Siemens S7-1200
1028 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
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
Format
Size (bits)
Numeric Range
Constant Entry Examples
BCD16
16
-999 to 999
123, -123
BCD32
32
-9999999 to 9999999
1234567, -1234567
4.4.1
Bool, Byte, Word, and DWord data types
Table 4- 26 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, 1,
I1.0
Q0.1
M50.7
DB1.DBX2.3
Tag_name
Binary
0 or 1
0, 2#0
Octal
8#0 or 8#1
8#1
Hexadecimal 16#0 or 16#1 16#1
Byte 8
Binary
2#0 to 2#11111111
2#00001111
IB2
MB10
DB1.DBB4
Tag_name
Unsigned integer
0 to 255
15
Octal
8#0 to 8#377
8#17
Hexadecimal
B#16#0 to B#16#FF
B#16#F, 16#F
Word 16
Binary
2#0 to 2#1111111111111111
2#1111000011110000
MW10
DB1.DBW2
Tag_name
Unsigned integer
0 to 65535
61680
Octal
8#0 to 8#177777
8#170360
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
11111111
2#111100001111111100
001111
MD10
DB1.DBD8
Tag_name
Unsigned integer
0 to 4294967295
15793935

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals