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.6 Move operations
S7-1200 Programmable controller
276 System Manual, V4.2, 09/2016, A5E02486680-AK
Table 8- 82 ENO status
ENO
Condition
Result
1 No error The IN element was successfully copied to
all COUNT destinations.
0 The destination (OUT) range exceeds
the available memory area
Elements that fit are copied. No partial ele-
ments are copied.
8.6.5
SWAP (Swap bytes)
Table 8- 83 SWAP instruction
LAD / FBD
SCL
Description
out := SWAP(in);
Reverses the byte order for two-byte and four-byte data elements. No change
is made to the bit order within each byte. ENO is always TRUE following exe-
cution of the SWAP instruction.
1
For LAD and FBD: Click the "???" and select a data type from the drop-down menu.
Table 8- 84 Data types for the parameters
Parameter
Data type
Description
IN
Word, DWord
Ordered data bytes IN
OUT
Word, DWord
Reverse ordered data bytes OUT
Example 1
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Address
MW0
MB1
MW4
MB5
W#16#1234
WORD
12
MSB
34
LSB
34
MSB
12
LSB
Example 2
Parameter IN = MB0
(before execution)
Parameter OUT = MB4,
(after execution)
Address
MD0
MB1
MB2
MB3
MD4
MB5
MB6
MB7
DW#16#
12345678
DWORD
12
MSB
34
56
78
LSB
78
MSB
56
34
12
LSB

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals