Conversion Instructions For Scl - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

100BBasic instructions
7.7 Convert
7.7.2

Conversion instructions for SCL

Conversion instructions for SCL
Table 7- 76
Conversion from a Byte, Word, or DWord
Data type
Instruction
Byte
BYTE_TO_WORD, BYTE_TO_DWORD
BYTE_TO_SINT, BYTE_TO_USINT
BYTE_TO_INT, BYTE_TO_UINT,
BYTE_TO_DINT, BYTE_TO_UDINT
Word
WORD_TO_BYTE
WORD _TO_DWORD
WORD _TO_SINT, WORD _TO_USINT
WORD _TO_INT, WORD _TO_UINT
WORD _TO_DINT, WORD _TO_UDINT
DWord
DWORD_TO_BYTE, DWORD_TO_WORD,
DWORD_TO_SINT, DWORD_TO_USINT,
DWORD_TO_INT, DWORD_TO_UINT
DWORD_TO_DINT, DWORD_TO_UDINT,
DWORD_TO_REAL
Table 7- 77
Conversion from a short integer (SInt or USInt)
Data type
Instruction
SInt
SINT_TO_BYTE
SINT_TO_WORD, SINT_TO_DWORD,
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
USInt
USINT_TO_BYTE
USINT_TO_WORD, USINT_TO_DWORD,
USINT_TO_INT, USINT_TO_UINT,
USINT_TO_DINT, USINT_TO_UDINT
USINT_TO_SINT, USINT_TO_REAL,
USINT_TO_LREAL, USINT_TO_CHAR,
USINT_TO_STRING
202
Result
The value is transferred to the low byte of the target data
type.
The value is transferred to the target data type.
The value is transferred to the least significant byte of the
target data type.
The low byte of the source value is transferred to the
target data type.
The value is transferred to the low byte of the target data
type.
The low byte of the source value is transferred to the
target data type.
The value is transferred to the target data type.
The value is transferred to the low byte of the target data
type.
The low byte of the source value is transferred to the
target data type.
The value is transferred to the target data type.
Result
The value is transferred to the target data type.
The value is transferred to the low byte of the target data
type.
The value is converted.
The value is transferred to the target data type.
The value is transferred to the low byte of the target data
type.
The value is converted.
System Manual, 11/2011, A5E02486680-05
S7-1200 Programmable controller

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents