Mitsubishi Electric MELSEC-Q/L Programming Manual page 400

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
[Ladder Mode]
[Operation]
Y17
Y16
1
0
Y17
Y16
0
0
• 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]
[Operation]
Carry flag
(SM700)
0
7 APPLICATION INSTRUCTIONS
398
7.3 Shift Instructions
Y15
Y14
Y13
1
1
1
Y15
Y14
Y13
1
0
1
Y2C
Y2B
Y2A
1
0
1
Y2C
Y2B
Y2A
1
0
1
[List Mode]
Step
Y12
Y11
Y10
0
0
1
Y12
Y11
Y10
1
1
0
[List Mode]
Step
Y29
Y28
Y27
1
0
1
Y29
Y28
Y27
1
0
0
Instruction
Carry flag
(SM700)
0
Instruction
Y26
Y25
Y24
0
1
1
Y26
Y25
Y24
1
0
0
Device
Device
Y23
Y22
Y21
0
0
1
Y23
Y22
Y21
0
0
0

Advertisement

Table of Contents
loading

Table of Contents