Siemens SIMATIC S7-1200 Manual page 34

Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

PLC concepts made easy
4.3 Memory areas, addressing and data types
Data types supported by S7-1200
Data
type
Bool
Byte
Word
DWord
Char
Sint
Int
Dint
USInt
UInt
UDInt
Real
LReal
Time
String
DTL
1
Although not available as data types, the following BCD numeric format is supported by the
conversion instructions.
Format
BCD16
BCD32
34
Size
Range
(bits)
1
0 to 1
8
16#00 to 16#FF
16
16#0000 to 16#FFFF
32
16#00000000 to 16#FFFFFFFF
8
16#00 to 16#FF
8
-128 to 127
16
-32,768 to 32,767
32
-2,147,483,648 to 2,147,483,647
8
0 to 255
16
0 to 65,535
32
0 to 4,294,967,295
32
+/-1.18 x 10
64
+/-2.23 x 10
32
T#-24d_20h_31m_23s_648ms to
T#24d_20h_31m_23s_647ms
Stored as: -2,147,483,648 ms to
+2,147,483,647 ms
Variable
0 to 254 byte-size characters
12 bytes
Minimum:
1
DTL#1970-01-01-00:00:00.0
Maximum:
DTL#2554-12-31-23:59:59.999 999 999
The DTL data type is a structure of 12 bytes that saves information on date and time in a
predefined structure. You can define a DTL in either the Temp memory of the block or in a DB.
Size (bits)
16
32
Data types are used to specify both the size of a data element
as well as how the data are to be interpreted. Each instruction
parameter supports at least one data type, and some
parameters support multiple data types. Hold the cursor over
the parameter field of an instruction to see which data types
are supported for a given parameter.
to +/-3.40 x 10
-38
38
to +/-1.79 x 10
-308
308
Numeric Range
-999 to 999
-9999999 to 9999999
Constant Entry Examples
TRUE, FALSE, 0, 1
16#12, 16#AB
16#ABCD, 16#0001
16#02468ACE
'A', 't', '@'
123, -123
123, -123
123, -123
123
123
123
123.456, -3.4, -1.2E+12, 3.4E-3
12345.123456789
-1.2E+40
T#5m_30s
5#-2d
T#1d_2h_15m_30x_45ms
'ABC'
DTL#2008-12-16-20:30:20.250
Examples
123, -123
1234567, -1234567
Manual, 11/2009, A5E02486774-01
Easy Book

Advertisement

Table of Contents
loading

Table of Contents