XCH
- 123 -
Program example
(1) Program to exchange T0 current value with D0 details when M8 turns ON.
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 details with M16 to M31 data when M10 turns ON.
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 details with R9 details when M0 turns ON.
No. of
steps
Com-
mand
Device
10 LD M0
11 XCH D0 R9
D0XCHP R9
M0
10
(pulse coding)
15