398
7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
• The following program shifts the data of Y10 to Y17 (8 bits) specified by (D) to the right by 2 bits (n2), when M0 is turned on.
• The following program shifts the data of Y21 to Y2C (12 bits) specified by (D) to the left by 5 bits (n2), when M0 is turned on.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
10111001
Y10Y11Y12Y13Y14Y15Y16Y17
Y10Y11Y12Y13Y14Y15Y16Y17
00101110
0
Carry flag
(SM700)
Step
Instruction
Device
010111011 001
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
001001011 000
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
0
Carry flag
(SM700)