A S S er i es Pr og r am m ing M an u a l
Example 1
1.
When M0 switches from OFF to ON, the instruction divides the data in the sixteen word devices starting from D20
to D35 into groups (four 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.
D23-D20
D27-D24
D31-D28
D35-D32
D13-D10
_6
D1 3
5
D3 5 D3 4 D3 3 D3 2 D3 1 D3 0
Example 2
1.
When M0 switches from OFF to ON, the instruction divides the data in the sixteen word devices starting from D20
to D35 into groups (five 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.
D20
D25
D30-D26
D35-D31
D14-D10
6 - 3 1 8
→ Being carried
→ D23-D20
→ D27-D24
→ D31-D28
→ D35-D32 completed
D1 2 D11
D1 0
D2 9
4
→ Being carried
→ D20
→ D25-D21
→ D30-D26
→ D35-D31 completed
F our r egi ster s as a group are shifted to the r ight.
D2 8 D2 7
D2 6 D2 5 D2 4 D2 3 D2 2 D2 1 D2 0
3
2
Being c arri ed
1