5 - 41 5 - 41
MELSEC-Q/QnA
5 SEQUENCE INSTRUCTIONS
(2) When word device bit designation is used
(a) 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.
1
Prior to shift
execution
000 1 0 0 0 1 1 0 1 0 0 01
to b0
b4
tob15
b5
1
After shift
execution
000 1 0 0 0 1 1 1 0 0 0 01
0
D0
[Operation Errors]
(1) There are no operation errors associated with the SFT (P) instruction.
[Program Example]
(1) The following program shifts Y57 to Y5B when X8 goes ON.
[Ladder Mode]
Shifts Y57 to Y5B when X8 goes ON
Begin program from larger device number
Y57 turned ON when X7 goes ON.
[Timing Chart] [List Mode]
ON
OFF
X8
ON
OFF
X7
ON
OFF
Y57
ON
OFF
Y58
OFF
Y59
ON
OFF
5A
ON
OFF
5B
ON
Steps
Instruction
Device
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com