EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 293

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
System Manual, V4.2, 09/2016, A5E02486680-AK
293
Table 8- 108 Conversion from a double integer (Dint or UDInt)
Data type
Instruction
Result
DInt
DINT_TO_BOOL
The least significant bit is transferred
into the destination data type.
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
The value is converted.
DINT_TO_DWORD, DINT_TO_TIME
The value is transferred to the target
data type.
UDInt
UDINT_TO_BOOL
The least significant bit is transferred
into the destination data type.
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
The value is converted.
UDINT_TO_DWORD, UDINT_TO_TOD
The value is transferred to the target
data type.
Table 8- 109 Conversion from a Real number (Real or LReal)
Data type
Instruction
Result
Real
REAL_TO_DWORD, REAL_TO_LREAL
The value is transferred to the target
data type.
REAL_TO_SINT, REAL_TO_USINT, REAL_TO_INT,
REAL_TO_UINT, REAL_TO_DINT, REAL_TO_UDINT,
REAL_TO_STRING
The value is converted.
LReal
LREAL_TO_SINT, LREAL_TO_USINT, LREAL_TO_INT,
LREAL_TO_UINT, LREAL_TO_DINT, LREAL_TO_UDINT,
LREAL_TO_REAL, LREAL_TO_STRING
The value is converted.
Table 8- 110 Conversion from Time, DTL, TOD or Date
Data type
Instruction
Result
Time
TIME_TO_DINT
The value is transferred to the target data type.
DTL
DTL_TO_DATE, DTL_TO_TOD
The value is converted.
TOD
TOD_TO_UDINT
The value is converted.
Date
DATE_TO_UINT
The value is converted.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals