7. APPLICATION INSTRUCTIONS
7
−
36
MELSEC-A
Execution Conditions
Operation Error
In the following case, operation error occurs and the error flag turns on.
•
"n" is a negative value.
Program Examples BSFR
Program which shifts the data of M668 to 676 to the right when X8F turns on.
BSFL
Program which shifts the outputs of Y60 to 6F to the left when X4 turns on.
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
Shift command
Specification range of
BSFRP instruction
Before execution
After execution
0 is entered.
Carry flag
(M9012)
Before execution
After execution
Carry flag
(M9012)
X08F
•
Coding
0 LD
X08F
1 BSFRP M668
K9
8 END
P
K
BSFR
M668
9
0
X004
•
Coding
0 LD
X004
1 BSFLP Y060
K16
8 END
0
P
K
BSFL Y060 16
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......