EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 400

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
398
7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
Program example
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]
Step
Instruction
Device
10111001
Y10Y11Y12Y13Y14Y15Y16Y17
Y10Y11Y12Y13Y14Y15Y16Y17
00101110
0
Carry flag
(SM700)
Step
Instruction
Device
010111011 001
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
001001011 000
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
0
Carry flag
(SM700)

Table of Contents

Related product manuals