DINT (32-bit integers) - Manual - SIMATIC S7 Connector - Industrial Edge - Industrial Edge App

SIMATIC S7 Connector

Product
SIMATIC S7 Connector
Product Version
v2.2.1
Edition
08/2024
Language
en-US (original)

An operand of data type DINT (Double INT) has a length of 32 bits and consists of two components: a sign and a numerical value in the two's complement. The signal states of bits 0 to 30 represent the number value. The signal state of bit 31 represents the sign. The sign may assume 0 for the positive, or 1 for the negative signal state.

An operand of data type DINT occupies four BYTE in the memory.

The following table shows the properties of data type DINT:

Length (bits) Format Value range Examples of value input
32 Signed integers (decimal system) -2_147_483_648 to +2_147_483_647
  • +125_790
  • DINT#+125_790
  • DINT#10#+125_790
  • L#275
32 Binary numbers (only positive) 2#0 to 2#0111_1111_1111_1111_111 1_1111_1111_1111
  • 2#0000_0000_0000_0001_ 1110_1011_0101_1110
  • DINT#2#0000_0000_0000_ 0001_1110_1011_0101_11 10
  • DINT#2#10
32 Octal numbers (only positive) 8#0 to 8#177_7777_7777
  • 8#36_5536
  • DINT#8#36_5536
32 Hexadecimal numbers 16#0 to 16#7FFF_FFFF
  • 16#0001_EB5E
  • DINT#16#0001_EB5E

Example

The following figure shows the integer +125790 as a binary number:

130342916747-d2e7782