Shift Instructions; Shifting Bit Devices - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

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).
Ladder diagram
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Remarks
(d)
Device number to receive shift
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(d)
*1 T, ST, C cannot be used.
Processing details
■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.
Ex.
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.
Shift input
M0
SFTP
SFTP
SFTP
SFTP
X2
SET
First device of shift
Range
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
*1
Shift range
M15 M14
M13
M14
0
0
0
0
0
0
M13
0
0
0
M12
0
0
0
0
0
1
M11
0
1
0
M10
0
0
1
Structured text
ENO:=SFT(EN,d);
ENO:=SFTP(EN,d);
Data type
Bit
Double word Indirect
specification
Z
LC
LZ
M12
M11
M10
M9
M8
(1) X2 ON
0
0
1
1
0
0
(2) After the 1st shift input
0
1
0
1
0
0
(3) After the 2nd shift input
1
0
0
1
0
(4) X2 ON
1
0
1
1
0
0
(5) After the 3rd shift input
0
1
0
1
0
0
(6) After the 4th shift input
1
0
0
1
0
0
(7) After the 5th shift input
0
0
0
1
0
Data type (label)
ANY_BOOL
Constant
Others
(DY)
K, H
E
$
5 SEQUENCE INSTRUCTIONS
5.4 Shift Instructions
5
125

Advertisement

Table of Contents
loading

Table of Contents