EasyManua.ls Logo

Siemens S7-1200 - Page 248

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
248 System Manual, 03/2014, A5E02486680-AG
Table 7- 80 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 7- 81 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 7- 82 Conversion from a Char or String
Data type
Instruction
Result
Char
CHAR_TO_SINT, CHAR_TO_USINT,
CHAR_TO_INT, CHAR_TO_UINT,
CHAR_TO_DINT, CHAR_TO_UDINT
The value is converted.
CHAR_TO_STRING
The value is transferred to the first character of
the string.
String
STRING_TO_SINT, STRING_TO_USINT,
STRING_TO_INT, STRING_TO_UINT,
STRING_TO_DINT, STRING_TO_UDINT,
STRING_TO_REAL, STRING_TO_LREAL
The value is converted.
STRING_TO_CHAR
The first character of the string is copied to the
Char.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals