8. Function Commands
XCH, XCHP
- 215 -
Program example
(1) Program to exchange T0 current value with D0 data when M8 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M8
11 XCH T0 D0
T0
XCH
D0
M8
10
(pulse coding)
15
(2) Program to exchange D0 data with M16 to M31 data when M10 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M10
11 XCH
K4M16
D0
K4M16XCH D0
M10
10
(pulse coding)
15
(3) Program to exchange D0 data with R9 data when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 XCHP D0 R9
D0XCHP R9
M0
10
(pulse coding)
21