EasyManua.ls Logo

Siemens S7-1200 - Page 246

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Basic instructions
7.7 Conversion operations
S7-1200 Programmable controller
246 System Manual, 03/2014, A5E02486680-AG
Data type
Instruction
Result
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
the target data type.
DWord
DWORD_TO_BOOL
The least significant bit is transferred into the destination
data type.
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)
Data type
Instruction
Result
SInt
SINT_TO_BOOL
The least significant bit is transferred into the destination
data type.
SINT_TO_BYTE
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
target data type.
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
The value is converted.
USInt
USINT_TO_BOOL
The least significant bit is transferred into the destination
data type.
USINT_TO_BYTE
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,
USINT_TO_STRING
The value is converted.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals