7. APPLICATION INSTRUCTIONS
7 − 38
MELSEC-A
(2) The lowest bit changes to 0.
(3) In regards to T/C, the present value (count value) is shifted.
(The shift of set value cannot be performed.)
Execution Conditions
Operation Error In the following case, operation error occurs and the error flag turns on.
• "n" is a negative value.
Program Examples DSFR
Program which shifts the contents of D683 to 689 to the right when XB turns on.
OFF
ON
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
Shift command
• Coding
0 LD X00B
1 DSFRP D683 K7
8 END
0
X00B
P K
DSFR D683 7
Before execution
After execution
Specification range of DSFRP instruction