FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
6-15
6: M
OVE
I
NSTRUCTIONS
XCHG (Exchange)
Applicable CPU Modules
Valid Devices
For the valid device address range, see pages 6-1 and 6-2 (Basic Vol.).
Internal relays M0 through M1277 can be designated as D1 or D2. Special internal relays cannot be designated as D1 or D2.
Valid Data Types
Examples: XCHG
Data Type: Word
Data Type: Double Word
Word data type:
D1
D2
Double-word data type:
D1·D1+1
D2, D2+1
When input is on, the 16- or 32-bit data in devices designated by D1 and D2 are exchanged with
each other.
XCHG(*)
D1
*****
D2
*****
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
D1 (Destination 1)
First device address to exchange
—
X
X
—
—
X
—
—
D2 (Destination 2)
First device address to exchange
—
X
X
—
—
X
—
—
W (word)
X
When a bit device such as Q (output), M (internal relay), or R (shift register) is designated as the destination, 16
points (word data type) or 32 points (double-word data type) are used.
When a word device such as D (data register) is designated as the destination, 1 point (word data type) or 2
points (double-word data type) are used.
I (integer)
—
D (double word)
X
L (long)
—
F (float)
—
D21
D24
When input I0 is turned on, data of data registers D21
and D24 designated by devices D1 and D2 are
exchanged with each other.
I0
XCHG(W)
D2
D24
D1
D21
SOTU
D22
1000
D21
D23
Before Exchange
After Exchange
2000
D24
D22
2000
D21
D23
1000
D24
D31·D32
D37·D38
When input I1 is turned on, data of data registers
D31·D32 and D37·D38 designated by devices D1 and
D2 are exchanged with each other.
I1
XCHG(D)
D2
D37
D1
D31
SOTU
Before Exchange
After Exchange
1234567890
D31·D32
D33·D34
D35·D36
9876543
D31·D32
D33·D34
D35·D36
9876543
D37·D38
1234567890
D37·D38
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...