Basic instructions
7.7 Conversion operations
S7-1200 Programmable controller
246 System Manual, 03/2014, A5E02486680-AG
WORD_TO_SINT, WORD_TO_USINT
The least significant byte of the source value is
transferred to the target data type.
WORD_TO_INT, WORD_TO_UINT
The value is transferred to the target data type.
WORD_TO_DINT, WORD_TO_UDINT
The value is transferred to the least significant word of
DWord
The least significant bit is transferred into the destination
DWORD_TO_BYTE, DWORD_TO_WORD,
DWORD_TO_SINT
The least significant byte of the source value is
transferred to the target data type.
DWORD_TO_USINT, DWORD_TO_INT,
DWORD_TO_UINT
The least significant word of the source value is
transferred to the target data type.
DWORD_TO_DINT, DWORD_TO_UDINT,
DWORD_TO_REAL
The value is transferred to the target data type.
Table 7- 77 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.