Mitsubishi Electric M800VW Series Programming Manual page 172

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
7 Basic Instructions
7.4 Shift Instructions
[When word device bit designation is used]
 Shifts to a bit in the device designated by (D) the 1/0 status of the bit immediately prior to the one designated, and turns the
prior bit to 0.
For example, if D0.5 (bit 5 [b5] of D0) has been designated by the SFT instruction, when the SFT instruction is executed, it
will shift the 1/0 status of b4 of D0 to b5, and turn b4 to 0.
b15
Prior to shift
0 1 0 0 1
execution
D0
After shift
0 1 0 0 1
execution
 Arithmetic errors
 There are no arithmetic errors associated with the SFT(P) instruction.
 Program example
 The following program shifts Y57 to Y5B when X8 goes ON.
X8
0
X7
10
13
ON
X8 OFF
X7 OFF
Y57 OFF
Y58 OFF
Y59 OFF
Y5A OFF
Y5B OFF
b5 b4
0 0
0
1 1 0 1 0
0 0
0
1 1 1 0 0
[Ladder mode]
SFT Y5B
SFT Y5A
SFT Y59
SFT Y58
SET Y57
END
[Timing Chart]
151
b0
0 0
1
0
0 0
1
Shifts Y57 to Y5B when X8 goes ON
Begin programming from larger
device number
Y57 turned ON when X7 goes ON
Steps
Inst.
0
LDP
2
SFT
4
SFT
6
SFT
8
SFT
10
LDP
12
SET
13
END
[List mode]
Device
X8
Y5B
Y5A
Y59
Y58
X7
Y57
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents