EasyManua.ls Logo

Siemens SIMATIC S7-1200

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
291
8.7.2
Conversion instructions for SCL
Conversion instructions for SCL
Table 8- 105 Conversion from a Bool, Byte, Word, or DWord
Data type
Instruction
Result
Bool
BOOL_TO_BYTE, BOOL_TO_WORD,
BOOL_TO_DWORD, BOOL_TO_INT,
BOOL_TO_DINT
The value is transferred to the least significant bit of the
target data type.
Byte
BYTE_TO_BOOL
The least significant bit is transferred into the destination
data type.
BYTE_TO_WORD, BYTE_TO_DWORD
The value is transferred to the least significant byte of the
target data type.
BYTE_TO_SINT, BYTE_TO_USINT
The value is transferred to the target data type.
BYTE_TO_INT, BYTE_TO_UINT,
BYTE_TO_DINT, BYTE_TO_UDINT
The value is transferred to the least significant byte of the
target data type.
Word
WORD_TO_BOOL
The least significant bit is transferred into the destination
data type.
WORD_TO_BYTE
The least significant byte of the source value is trans-
ferred to the target data type
WORD_TO_DWORD
The value is transferred to the least significant word of
the target data type.
WORD_TO_SINT, WORD_TO_USINT
The least significant byte of the source value is trans-
ferred to the target data type.
WORD_TO_INT, WORD_TO_UINT
The value is transferred to the target data type.
WORD_TO_DINT, WORD_TO_UDINT
The value is transferred to the least significant word of
the target data type.
DWord
DWORD_TO_BOOL
The least significant bit is transferred into the destination
data type.
DWORD_TO_BYTE, DWORD_TO_WORD,
DWORD_TO_SINT
The least significant byte of the source value is trans-
ferred to the target data type.
DWORD_TO_USINT, DWORD_TO_INT,
DWORD_TO_UINT
The least significant word of the source value is trans-
ferred to the target data type.
DWORD_TO_DINT, DWORD_TO_UDINT,
DWORD_TO_REAL
The value is transferred to the target data type.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals