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 left.
2.
The shift of the data in the word devices to the left during a scan (M0 switches from OFF to ON) is shown below.
D35-D32
D31-D28
D27-D24
D23-D20
D13-D10
_6
Being carri ed
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 left.
2.
The shift of the data in the word devices to the left during a scan (M0 switches from OFF to ON) is shown below.
D35
D30
D29-D25
D24-D20
D14-D10
6 - 3 2 2
→ Being carried
→ D35-D32
→ D31-D28
→ D27-D24
→ D23-D20 completed
F our r egi ster s as a group ar e shifted to the l eft.
D3 5 D3 4 D3 3 D3 2 D3 1 D3 0
1
2
→ Being carried
→ D35
→ D34-D30
→ D29-D25
→ D24-D20 completed
D2 9
D2 8 D2 7
D2 6 D2 5 D2 4 D2 3 D2 2 D2 1 D2 0
3
D1 3
D1 2 D11
D1 0
5
4