Mitsubishi MELSEC-Q Series Programming Manual page 153

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

(c) When the SFT and SFTP instructions are to be used consecutively, the program starts
from the device with the larger number.
Shift input
(2) When bit specification for word devices is used
(a) Shifts to a bit in the device specified for
the one specified for
For example, if D0.5 (bit 5 [b5] of D0) has been specified in the SFT instruction, when
the SFT instruction is executed, it will shift the 1/0 status of b4 of D0 to b5, and turns b4
to 0.
Operation Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• The device specified for
model QCPU only)
Shift range
M15 M14
M13
(1)
0
0
0
0
0
0
(2)
(3)
0
0
0
(4)
0
0
0
(5)
0
0
1
(6)
0
1
0
0
0
1
(7)
* At M8 to M15, "1" indicates ON and "0" indicates OFF.
Start device of shift
, and turns the prior bit to 0.
d
b15
Before the
0
execution of shift
D0
After the
0
execution of shift
exceeds the corresponding device range. (For Universal
d
M12
M11
M10
M9
M8
0
0
1
1
0
X02 ON
0
0
0
0
1
1
After the 1st shift input
0
1
0
0
1
0
After the 2nd shift input
1
0
1
1
0
X02 ON
0
0
1
0
1
0
After the 3rd shift input
0
1
0
0
1
0
After the 4th shift input
0
0
0
0
1
0
After the 5th shift input
the 1/0 status of the bit immediately prior to
d
b5
b4
to b0
to
1
0 0 1 0 0 0 1 1 0 1 0 0 0 1
0
1
0 0 1 0 0 0 1 1 1 0 0 0 0 1
5.4 Shift Instructions
5.4.1 Bit device shift
SFT
(Error code: 4101)
5-45
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents