7-50
BSFR(P),BSFL(P)
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• The range of the device n points from a device designated by , or exceeds the
relevant device. (Error code: 4101)
Program Example
(1) The following program shifts the data at M668 to M676 to the right when X8F is turned ON.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program shifts the data at Y60 to Y6F to the left when X4 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
D
Step Instruction Device
Designation range for the
BSFRP instruction
111010110011
110101011001
M672M671
M671M672
1
M678M677M676M675M674M673 M670M669M668M667
M678M677M676M675M674M673 M670M669M668M667
Carry flag
(SM700)
Filled with 0s.
Step Instruction Device
1
00
11
0000
1
0
1
0
111
00
11
0000
1
0
1
0
111
0
Y6FY68 Y60Y67
Y60Y67Y6F
Y68
1
Y6EY 6DY6CY6BY6AY69 Y66Y65Y64Y63Y62Y61
Y6EY 6DY6CY6BY6AY69 Y66Y65Y64Y63Y62Y61
Carry flag
(SM700)
Filled with 0