DINT |
Top Previous Next |
The data type DOUBLE INTEGER will be used if the range of values of the INT is not big enough. It is 4 bytes big and its range of values contains the numbers -2.147.483 till +2.147.483.647.
Using INT and DINT - sizes at the same time you have to think about the fact that INT-numbers are always positive out of the view of a DINT. Numbers with signs will always be negative if their most significant bit is ‘1’. If you load a number out of an INT (Word) the both left bytes of accu ‘1’ will be loaded with ‘0’. If you carry out a ‘D’ operation (+D, -D,..,>D,<D,..) with this value after this the number will always be positive, even if it is normally negative.
See also: |