Technical data

Appendix
27.3 Data Types and Parameter Types
Programming with STEP 7
590 Manual, 05/2010, A5E02789666-01
Type and
Description
Size in
Bits
Format Options Range and Number Notation
(lowest to highest value)_
Example
CHAR
(Character)
8 ASCII characters 'A','B' etc. L 'E'
27.3.2.1 Format of the Data Type INT (16-Bit Integers)
An integer has a sign that indicates whether it is a positive or negative integer. The space that an
integer (16 bits) occupies in the memory is one word. The following table shows the range of an
integer (16 bits).
Format Range
Integer (16 bits) -32 768 to +32 767
The following figure shows the integer +44 as a binary number.
27.3.2.2 Format of the Data Type DINT (32-Bit Integers)
An integer has a sign that indicates whether it is a positive or negative integer. The space that a
double integer occupies in the memory is two words. The following table shows the range of a
double integer.
Format Range
Integer (32 bits) -2 147 483 648 to +2 147 483 647
The following figure shows the integer -500 000 as a binary number. In the binary system, the
negative form of an integer is represented as the twos complement of the positive integer. You
obtain the twos complement of an integer by reversing the signal states of all bits and then adding
+1 to the result.