Documente Academic
Documente Profesional
Documente Cultură
NUMBERING SYSTEM
SIEMENS
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved
1/9
SIEMENS
Objectives
- Know The Different Numbering System. - Know The Integer, Double Integer, Real Formats & How It Is Used.
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved
2/9
SIEMENS
Name
Binary Decimal Hexadecimal
Base
Base 2 Base 10 Base 16
Size
Name
Bit Byte Word Double Word
(bit s)
Example 1 0000 0101 0000 0000 0000 0101 0000 0000 0000 0000 0000 0000 0000 0101
1 8 16
32
3/9
SIEMENS
Data Type
Data Size
S7-Format
Min. No.
Max. No.
Bool
One Bit
2# Binary Format
2#0
2#1
Byte
8 Bit
B#16#00
B#16#FF
Word
16 Bit
B#16#0000
B#16#FFFF
DWord
32 Bit
B#16#
B#16#0000_000 0 -32767
B#16#FFFF_FFF F +32768
INT
16 Bit
DINT
32 Bit
L#
L# -2147483647 1.175495e+38
L# +2147483648 3.402823e+38
November 21, 2013
Real
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved
32 Bit
0.000000e+000
4/9
DEC: + 813
DEC: - 813
Value Range Arithmetic Operations
BIN.: 2# BIN.: 2#
0 0 0 0 0 0 1 1 0 0 1 0 1 1 0 1 1 1 1 1 1 1 0 0 1 1 0 1 0 0 1 1
BIN.: 2# BIN.: 2#
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 1 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 0 0 0 0 1 1 1 1 0 1
e = Exponent (8 Bit)
28 27 26 25 24 23 22 21 20 19 18 17 16 15
0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Value Range Arithmetic Operations: -1.175495e-38 to 3.402823e+38 such as + R, * R, <R, ==R ,sin, acos, ln, exp, SQR
SIMATIC S7
SIEMENS LTD EGYPT 2007 All Rights Reserved
5/9