Mitsubishi MELSEC-Q/L Programming Manual page 344

Table of Contents

Advertisement

BSFR, BSFRP, BSFL, BSFLP
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.
Error
code
The points specified in n exceed those of the corresponding device
4101
specified in
.
D
Program Example
(1) The following program shifts the data at M668 to M676 to the right when X8F is turned ON.
[Ladder Mode]
[Operation]
Designation range for the
BSFRP instruction
M678M677M676M675M674M673
1
1
1
0
1
M678M677M676M675M674M673
1
1
0
1
0
Filled with 0s.
(2) The following program shifts the data at Y60 to Y6F to the left when X4 is turned ON.
[Ladder Mode]
[Operation]
Y6F
Y6EY6DY6CY6BY6AY69
1
Carry flag
(SM700)
Y6F
Y6EY6DY6CY6BY6AY69
1
0
342
Error details
[List Mode]
Step
M672
M671
M670M669M668M667
0
1
1
0
0
1
1
M672M671
M670M669M668M667
1
0
1
1
0
0
1
[List Mode]
Step
Y68
Y67
Y66Y65Y64Y63Y62Y61
0
0
1
1
0
0
0
0
Y68
Y67
Y66Y65Y64Y63Y62Y61
0
1
1
0
0
0
0
1
Q00J/
Q00/
QnH
Q01
Instruction
Device
Carry flag
(SM700)
1
Instruction
Device
Y60
1
0
1
0
1
1
1
Y60
0
1
0
1
1
1
0
Filled with 0
QnPH QnPRH
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents