Basic instructions
8.7 Conversion operations
S7-1200 Programmable controller
292 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 106 Conversion from a short integer (SInt or USInt)
SInt
The least significant bit is transferred into the destination
The value is transferred to the target data type
SINT_TO_WORD, SINT_TO_DWORD
The value is transferred to the least significant byte of the
SINT_TO_INT, SINT_TO_DINT,
SINT_TO_USINT, SINT_TO_UINT,
SINT_TO_UDINT, SINT_TO_REAL,
SINT_TO_LREAL, SINT_TO_CHAR,
The value is converted.
USInt
The least significant bit is transferred into the destination
The value is transferred to the target data type
USINT_TO_WORD, USINT_TO_DWORD,
USINT_TO_INT, USINT_TO_UINT,
USINT_TO_DINT, USINT_TO_UDINT
The value is transferred to the least significant byte of the
target data type.
USINT_TO_SINT, USINT_TO_REAL,
USINT_TO_LREAL, USINT_TO_CHAR,
The value is converted.
Table 8- 107 Conversion from an integer (Int or UInt)
Int
The least significant bit is transferred into the destination
INT_TO_BYTE, INT_TO_DWORD,
INT_TO_SINT, INT_TO_USINT,
INT_TO_UINT, INT_TO_UDINT,
INT_TO_REAL, INT_TO_LREAL,
INT_TO_CHAR, INT_TO_STRING
The value is converted.
The value is transferred to the target data type.
The value is transferred to the least significant byte of the
UInt
The least significant bit is transferred into the destination
UINT_TO_BYTE, UINT_TO_SINT,
UINT_TO_USINT, UINT_TO_INT,
UINT_TO_REAL, UINT_TO_LREAL,
UINT_TO_CHAR, UINT_TO_STRING
The value is converted.
UINT_TO_WORD, UINT_TO_DATE
The value is transferred to the target data type.
UINT_TO_DWORD, UINT_TO_DINT,
UINT_TO_UDINT
The value is transferred to the least significant byte of the