259
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.8 FNC 17 – XCH / Exchange
1
Introduction
2
Overview
3
Instruction
List
4
Devices
in Detail
5
Specified the
Device &
Constant
6
Before
Programming
7
Basic
Instruction
8
FNC00-FNC09
Program Flow
9
FNC10-FNC19
Move & Compare
10
FNC20-FNC29
Arith. & Logic
Operation
Extension function (function compatible between the FX2 Series and the FX2C Series)
When the instruction is executed while M8160 is ON, high-order 8 bits (byte) and low-order 8 bits (byte) of a word
device are exchanged each other.
Because this instruction works in the same way as SWAP (FNC147) instruction, use SWAP instruction when
programming new exchange.
In a 32-bit operation, high-order 8 bits (byte) and low-order 8 bits (byte) of each word device are exchanged for each
other.
Error
An operation error occurs in the following case. The error flag M8067 turns ON, and the error code is stored in D8067.
• When M8160 is ON, and the device number is different between and
M8000
FNC 17
DXCH
D 10 D 10
M8160
M8160
SWAP
X000
High-order 8 bits Low-order 8 bits
D 11
High-order 8 bits Low-order 8 bits
D 10
D
1
D
2