EasyManuals Logo

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N Series
466 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
Page #272 background imageLoading...
Page #272 background image
FX Series Programmable Controlers Applied Instructions 5
5-152
5.12.1 SWAP (FNC 147)
Contents:
The upper byte and the lower byte of the source
device are swapped.
This instruction is equivalent to operation 2 of FNC
17 XCH (see page 5-21).
Points to note:
a) In single word (16 bit) operation the upper and lower byte of the source device are
exchanged.
b) In double word (32 bit) operation the upper and lower byte of each or the two 16 bit devices
are exchanged.
Result of DSWAP(P) D10:
c) If the operation of this instruction is allowed to execute each scan, then the value of the
source device will swap back to its original value every other scan. The use of the pulse
modifier or an interlock program is recommended.
Mnemonic Function
Operands
Program steps
S
SWAP
FNC 147
(Byte
Swap)
The high and low
byte of the
designated
devices are
exchanged
KnY, KnM, KnS, T, C, D, V, Z SWAP,SWAPP
:5steps
DSWAP,
DSWAPP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
X34
D10
SWAPP
D10
Byte 1
Values are in Hex for clarity
Byte 2
D11
Byte 1
Byte 2
Before DSWAP After DSWAP
1F
H
8B
H
C4
H
35
H
1F
H
8B
H
C4
H
35
H

Table of Contents

Other manuals for Mitsubishi FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1N Series and is the answer not in the manual?

Mitsubishi FX1N Series Specifications

General IconGeneral
Programming LanguageLadder Logic
Output TypeRelay, Transistor
Operating Temperature0 to 55°C
Power Supply100-240V AC or 24V DC
Program Capacity8K steps
Communication PortsRS-422
Data Memory8000 words
High-speed CountersUp to 6 channels
Expansion ModulesAvailable
Pulse Output2 points

Related product manuals