SFR(P),SFL(P)
Program Example
(1) The following program shifts the data of D0 to the right by the number of bits designated by
D100 when X20 is turned ON.
[Ladder Mode]
[Operation]
b15
D0
1
D100
b15
D0
0
Filled with 0s.
(2) The following program shifts the contents of X10 to X17 3 bits to the left when X1C is ON.
[Ladder Mode]
[Operation]
Carry flag
(SM700)
7-48
b14 b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0
1
0
0
1
1
1
0
3
b14 b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0
0
1
0
1
0
0
1
X17
X14
X13
0
0
1
1
X17
X14 X13
1
1
0
0
1
[List Mode]
Step
Instruction
0
1
0
1
0
0
0
1
1
0
0
1
0
1
[List Mode]
Step
Instruction
X10
0
0
1
1
X12
X10
1
0
0
0
Filled with 0s.
Device
Carry flag
(SM700)
0
Device