Hide thumbs Also See for S7-1200:
Table of Contents
Basic instructions
7.7 Conversion operations
Data type
Instruction
WORD_TO_SINT, WORD_TO_USINT
WORD_TO_INT, WORD_TO_UINT
WORD_TO_DINT, WORD_TO_UDINT
DWORD_TO_BOOL
DWord
DWORD_TO_BYTE, DWORD_TO_WORD,
DWORD_TO_SINT
DWORD_TO_USINT, DWORD_TO_INT,
DWORD_TO_UINT
DWORD_TO_DINT, DWORD_TO_UDINT,
DWORD_TO_REAL
Table 7- 77
Conversion from a short integer (SInt or USInt)
Data type
Instruction
SINT_TO_BOOL
SInt
SINT_TO_BYTE
SINT_TO_WORD, SINT_TO_DWORD
SINT_TO_INT, SINT_TO_DINT,
SINT_TO_USINT, SINT_TO_UINT,
SINT_TO_UDINT, SINT_TO_REAL,
SINT_TO_LREAL, SINT_TO_CHAR,
SINT_TO_STRING
USINT_TO_BOOL
USInt
USINT_TO_BYTE
USINT_TO_WORD, USINT_TO_DWORD,
USINT_TO_INT, USINT_TO_UINT,
USINT_TO_DINT, USINT_TO_UDINT
USINT_TO_SINT, USINT_TO_REAL,
USINT_TO_LREAL, USINT_TO_CHAR,
USINT_TO_STRING
246
Result
The least significant byte of the source value is
transferred to the target data type.
The value is transferred to the target data type.
The value is transferred to the least significant word of
the target data type.
The least significant bit is transferred into the destination
data type.
The least significant byte of the source value is
transferred to the target data type.
The least significant word of the source value is
transferred to the target data type.
The value is transferred to the target data type.
Result
The least significant bit is transferred into the destination
data type.
The value is transferred to the target data type
The value is transferred to the least significant byte of the
target data type.
The value is converted.
The least significant bit is transferred into the destination
data type.
The value is transferred to the target data type
The value is transferred to the least significant byte of the
target data type.
The value is converted.
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller
Table of Contents
loading

Table of Contents