5 SEQUENCE INSTRUCTIONS
5.4 Shift Instructions
125
5
5.4 Shift Instructions
Shifting bit devices
SFT(P)
• In case of bit device:
These instructions shift the ON/OFF status of the device before the device specified by (d) to the device specified by (d).
• When bit of word device is specified:
These instructions shift the 1/0 status of the bit before the bit specified by (d) to the bit specified by (d).
■Descriptions, ranges, and data types
■Applicable devices
*1 T, ST, C cannot be used.
■In case of bit device
• This instruction shifts the ON/OFF status of the device before the device specified by (d) to the device specified by (d). The
device before the device specified by (d) turns OFF.
When M11 is specified by the SFTP instruction and the SFTP instruction is executed, the ON/OFF status of M10 is shifted to
M11 and M10 is turned OFF.
• Turn ON the first device to be shifted by the SET instruction.
• When the SFT(P) instruction is used consecutively, create the program to start from the device with the largest number.
Ladder diagram Structured text
ENO:=SFT(EN,d);
ENO:=SFTP(EN,d);
Operand Remarks Range Data type Data type (label)
(d) Device number to receive shift Bit ANY_BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
(DY)
X, Y, M, L,
SM, F, B, SB
U\G T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U\G Z LC LZ K, H E $
(d)
*1
00
M15
M14
0
M13
0
M12
0
M11
1
M10
1
M9
0
M8
00100010
0000
1
0
1
0
00010010
000
1
0
11
0
00101010
1
00
1
00
1
0
0
0
0
0
0
M0
M14SFTP
M13SFTP
M12
SFTP
M11SFTP
M10SET
X2
Shift input
First device of shift
Shift range
(1) X2 ON
(3) After the 2nd shift input
(2) After the 1st shift input
(4) X2 ON
(5) After the 3rd shift input
(7) After the 5th shift input
(6) After the 4th shift input