EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 292

Siemens SIMATIC S7-1200
1614 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
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)
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 8- 107 Conversion from an integer (Int or UInt)
Data type
instruction
Result
Int
INT_TO_BOOL
The least significant bit is transferred into the destination
data type.
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.
INT_TO_WORD
The value is transferred to the target data type.
INT_TO_DINT
The value is transferred to the least significant byte of the
target data type.
UInt
UINT_TO_BOOL
The least significant bit is transferred into the destination
data type.
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
target data type.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals