D 1 4
D 1 3
D 1 2
5
D 3 5
D 3 4
D 3 3
Example 3
1.
When M0 switches from OFF to ON, the instruction divides the data in the eight word devices starting from D20 to
D35 into groups (two words in a group), and shifts these groups to the right.
2.
The shift of the data in the word devices to the right during a scan (M0 switches from OFF to ON) is shown below.
→ Being carried
D23-D20
→ D23-D20
D27-D24
→ D27-D24
D31-D28
→ D31-D28
D35-D32
→ D35-D32 completed
D13-D10
F ive re gi sters as a group are shifter to the ri ght.
Fiv e regis ters as a g roup a re s hifted to t he r ight.
D 1 1
D 1 0
D 3 2
D 3 1
D 3 0
D 2 9
D 2 8
D 2 7
4
C ha pt er 6 A p pl i e d In s tr uc t io ns
D 2 6
D 2 5
D 2 4
D 2 3
D 2 2
D 2 1
3
2
Being c arried
D 2 0
1
6 - 3 1 9
6_