Fnc 17 - Xch / Exchange - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
9.8
FNC 17 – XCH / Exchange
Outline
This instruction exchanges data between two devices.
1. Instruction format
FNC 17
D
XCH
P
2. Set data
Operand Type
D
1
D
2
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
D
1
D
2
Explanation of function and operation
1. 16-bit operation (XCH and XCHP)
Data is exchanged between
Command
input
FNC 17
XCHP
Before
execution
=
D
1
=
D
2
2. 32-bit operation (DXCH and DXCHP)
Data is exchanged between [
Command
input
FNC 17
DXCHP
Before execution
D
D
1
+1,
1
D
+1,
D
2
2
Mnemonic
16-bit Instruction
XCH
5 steps
XCHP
Device number storing data to be exchanged.
Device number storing data to be exchanged.
Digit Specification
D
and
D
.
1
2
D
D
D
1
2
1
After
execution
=
K36
K10
D
1
=
K36
K10
D
2
Exchange
D
+1,
D
] and [
1
1
D
D
D
1
2
1
=
K1433600
K10000
=
K10000
K1433600
Exchange
9 Move and Compare – FNC 10 to FNC 19
Operation Condition
32-bit Instruction
Continuous
9 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
V
Z Modify K H
D
2
D
+1,
D
].
2
2
D
D
D
+1,
+1,
1
2
2
After execution
=
D
D
1
+1,
1
=
D
+1,
D
2
2
9.8 FNC 17 – XCH / Exchange
Mnemonic
Operation Condition
DXCH
Continuous
Operation
DXCHP
Pulse (Single)
Operation
Data Type
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
1
2
3
4
Pointer
P
5
6
7
8
9
10
261

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents