Shift Instructions - Mitsubishi Electric melsec-k Programming Manual

Hide thumbs Also See for melsec-k:
Table of Contents

Advertisement

5-3-7.
Shift instructions
(1) Subject
Programming so that the output signals at the outputs YlO, 11, 12,
...
1F for the output
board of KY10 installed in the device number (110 UNIT 1) are shifted every second.
(a) The meaning of SFT instructions
(2) Programming outlines
When SFT instructions are applied in regard to the temporary memory Mi, judgement
is executed whether Mi- is 1 or zero.
For Mi-1
=
1, Mi-1
=
1
(b) Shift register M assignment
The temporary memories M assigned as shift registers are
MO, M1, M2
...
M15. (M16 is a dummy.)
(c) Composition of the shift circuit for M O to M16
0
In the circuit for the top MO,
SET is used instead of SFT (shift) as below.
SET conditions for M O
or
0
Setting of the intermediate M1 to MI5 by SFT.
As processing of the programmable controller is executed by condition processing in
the sequence of the sequence diagram, the entire shift is completed at once with ar-
rangement of the M numbers from the smallest upwards. Accordingly, the M numbers
0 is executed, and Mi
=
1 is obtained.
Initial set
Setting after 1 round as M16
=
1
of the sequence diagram are arranged in reverse order from the higher numbers down.
I
' I
I
Fig. 5-36.
Drawing
up
of the shift register circuit
(d) Output to KY10 (output unit)
Collective output at data by the instruction MOV for MO to M15 is convenient.
-64-

Advertisement

Table of Contents
loading

Table of Contents