Xchg (Exchange) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

XCHG (Exchange)

XCHG(*)
*****
Valid Devices
Device
D1 (Destination 1)
D2 (Destination 2)
For valid device address ranges, see "Device Addresses" on page 2-1.
Special internal relays cannot be designated as D1 or D2.
Valid Data Types
W (word)
X
I (integer)
D (double word)
X
L (long)
F (float)
Examples: XCHG
• Data Type: Word
XCHG(W)
SOTU
I0
D21 ↔ D24
When input I0 is turned on, data of data registers D21
and D24 assigned by devices D1 and D2 are exchanged
with each other.
• Data Type: Double Word
XCHG(D)
SOTU
I1
D31·D32 ↔ D37·D38
When input I1 is turned on, data of data registers
D31·D32 and D37·D38 assigned by devices D1 and D2
are exchanged with each other.
Word data:
Double-word data:
D1
D2
*****
When input is on, the 16- or 32-bit data in devices assigned by D1 and D2 are exchanged with
each other.
Function
First device address to exchange
First device address to exchange
When a bit device such as Q (output), M (internal relay), or R (shift register) is assigned as the destination, 16
points (word data) or 32 points (double-word data) are used.
When a word device such as D (data register) is assigned as the destination, 1 point (word data) or 2 points
(double-word data) are used.
D1
D2
D21
D24
D1
D2
D31
D37
FC6A S
MICROS
ERIES
MART
D1 ↔ D2
D1·D1+1 → D2, D2+1
I
Q
M
X
X
Before Exchange
1000
D21
D22
D23
2000
D24
Before Exchange
1234567890
D31·D32
D33·D34
D35·D36
9876543
D37·D38
L
P
M
ADDER
ROGRAMMING
ANUAL
5: M
OVE
R
T
C
D
P
Constant
X
X
X
X
After Exchange
2000
D21
D22
D23
1000
D24
After Exchange
D31·D32
D33·D34
D35·D36
D37·D38
FC9Y-B1726
I
NSTRUCTIONS
Repeat
9876543
1234567890
5-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents