SINT (8-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 SINT (Short INT) has a length of 8 bits and consists of two components: a sign and a numerical value in the two's complement. The signal states of bits 0 to 6 represent the number value. The signal state of bit 7 represents the sign. The sign may assume 0 for the positive, or 1 for the negative signal state.

An operand of data type SINT occupies one BYTE in the memory.

The following table shows the properties of data type SINT:

Length (bits) Format Value range Examples of value input
8 Signed integers (decimal system) -128 to +127
  • +44
  • SINT#+44
  • SINT#10#+44

The value range extends to a maximum of SINT#255 when using the type SINT#. This value is interpreted as an integer with -1.
8 Binary numbers (only positive) 2#0 to 2#0111_1111
  • 2#0010_1100
  • SINT#2#0010_1100
  • SINT#2#10
8 Octal numbers (only positive) 8#0 to 8#177
  • 8#54
  • SINT#8#54
8 Hexadecimal numbers (only positive) 16#0 to 16#7F
  • 16#2C
  • SINT#16#2C

The value range extends to a maximum of SINT#16#FF when using the type SINT#. This value is interpreted as an integer with -1.