Siemens S7-1200 System Manual page 247

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Table 7- 78
Conversion from an integer (Int or UInt)
Data type
instruction
INT_TO_BOOL
Int
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
INT_TO_WORD
INT_TO_DINT
UINT_TO_BOOL
UInt
UINT_TO_BYTE, UINT_TO_SINT,
UINT_TO_USINT, UINT_TO_INT,
UINT_TO_REAL, UINT_TO_LREAL,
UINT_TO_CHAR, UINT_TO_STRING
UINT_TO_WORD, UINT_TO_DATE
UINT_TO_DWORD, UINT_TO_DINT,
UINT_TO_UDINT
Table 7- 79
Conversion from a double integer (Dint or UDInt)
Data type
Instruction
DINT_TO_BOOL
DInt
DINT_TO_BYTE, DINT_TO_WORD, DINT_TO_SINT,
DINT_TO_USINT, DINT_TO_INT, DINT_TO_UINT,
DINT_TO_UDINT, DINT_TO_REAL, DINT_TO_LREAL,
DINT_TO_CHAR, DINT_TO_STRING
DINT_TO_DWORD, DINT_TO_TIME
UDINT_TO_BOOL
UDInt
UDINT_TO_BYTE, UDINT_TO_WORD, UDINT_TO_SINT,
UDINT_TO_USINT, UDINT_TO_INT, UDINT_TO_UINT,
UDINT_TO_DINT, UDINT_TO_REAL, UDINT_TO_LREAL,
UDINT_TO_CHAR, UDINT_TO_STRING
UDINT_TO_DWORD, UDINT_TO_TOD
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Result
The least significant bit is transferred into the destination
data type.
The value is converted.
The value is transferred to the target data type.
The value is transferred to the least significant byte of the
target data type.
The least significant bit is transferred into the destination
data type.
The value is converted.
The value is transferred to the target data type.
The value is transferred to the least significant byte of the
target data type.
Result
The least significant bit is transferred
into the destination data type.
The value is converted.
The value is transferred to the target
data type.
The least significant bit is transferred
into the destination data type.
The value is converted.
The value is transferred to the target
data type.
Basic instructions
7.7 Conversion operations
247

Advertisement

Table of Contents
loading

Table of Contents