Siemens S7-1200 System Manual page 248

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

Advertisement

Basic instructions
7.7 Conversion operations
Table 7- 80
Conversion from a Real number (Real or LReal)
Data type
Instruction
REAL_TO_DWORD, REAL_TO_LREAL
Real
REAL_TO_SINT, REAL_TO_USINT, REAL_TO_INT,
REAL_TO_UINT, REAL_TO_DINT, REAL_TO_UDINT,
REAL_TO_STRING
LREAL_TO_SINT, LREAL_TO_USINT, LREAL_TO_INT,
LReal
LREAL_TO_UINT, LREAL_TO_DINT, LREAL_TO_UDINT,
LREAL_TO_REAL, LREAL_TO_STRING
Table 7- 81
Conversion from Time, DTL, TOD or Date
Data type
Instruction
TIME_TO_DINT
Time
DTL_TO_DATE, DTL_TO_TOD
DTL
TOD_TO_UDINT
TOD
DATE_TO_UINT
Date
Table 7- 82
Conversion from a Char or String
Data type
Instruction
CHAR_TO_SINT, CHAR_TO_USINT,
Char
CHAR_TO_INT, CHAR_TO_UINT,
CHAR_TO_DINT, CHAR_TO_UDINT
CHAR_TO_STRING
STRING_TO_SINT, STRING_TO_USINT,
String
STRING_TO_INT, STRING_TO_UINT,
STRING_TO_DINT, STRING_TO_UDINT,
STRING_TO_REAL, STRING_TO_LREAL
STRING_TO_CHAR
248
Result
The value is transferred to the target
data type.
The value is converted.
The value is converted.
Result
The value is transferred to the target data type.
The value is converted.
The value is converted.
The value is converted.
Result
The value is converted.
The value is transferred to the first character of
the string.
The value is converted.
The first character of the string is copied to the
Char.
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents