EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 395

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...
7 APPLICATION INSTRUCTIONS
7.3 Shift Instructions
393
7
Program example
The following program shifts the data of D0 to the right by the number of bits designated by D100 when X20 is turned ON.
The following program shifts the contents of X10 to X17 3 bits to the left when X1C is ON.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
0101 0 11 1001 0 1 000
b14 b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0
b15
Carry flag
(SM700)
Filled with 0s.
100001 0011100 1 0 1
b14 b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
b15
D100
D0
D0
3
Step Instruction Device
00
11
00
11
1 0011000
X14X13
X13X14
1
X17X10
X17X10
Carry flag
(SM700)
Filled with 0s.
X12

Table of Contents

Related product manuals