EasyManua.ls Logo

Siemens SIMATIC S7-1200 Easy Book

Siemens SIMATIC S7-1200 Easy Book
122 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...
How the S7-1200 works
4.3 Memory areas, addressing and data types
Easy Book
34 Manual, 05/2009, A5E02486774-01
Data types supported by S7-1200
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.
Data type Size (bits) Range Examples
Bool 1 0 to 1 TRUE, FALSE, 0, 1
Byte 8 16#00 to 16#FF 16#12, 16#AB
Word 16 16#0000 to 16#FFFF 16#ABCD, 16#0001
DWord 32 16#00000000 to 16#FFFFFFFF 16#02468ACE
Char 8 16#00 to 16#FF 'A', 't', '@'
Sint 8 -128 to 127 123, -123
Int 16 -32,768 to 32,767 123, -123
Dint 32 -2,147,483,648 to 2,147,483,647 123, -123
USInt 8 0 to 255 123
UInt 16 0 to 65,535 123
UDInt 32 0 to 4,294,967,295 123
Real 32 +/-1.18 x 10
-38
to +/-3.40 x 10
38
123.456, -3.4, -1.2E+12, 3.4E-3
LReal 64 +/-2.2250738585072020 × 10
−308
to +/-1.7976931348623157 × 10
308
12345.123456789.
-1.2E+40
Time 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
T#5m_30s
5#-2d
T#1d_2h_15m_30x_45ms
String Variable 0 to 254 byte-size characters 'ABC'
Although not available as data types, the following BCD numeric format is supported by the
conversion instructions.
Format Size (bits) Numeric Range Examples
BCD16 16 -999 to 999 123, -123
BCD32 32 -9999999 to 9999999 1234567, -1234567

Table of Contents

Related product manuals