Shift Instruction (Sft) - Mitsubishi Electric MELSEC-KOJIU Instruction Manual

Table of Contents

Advertisement

[5. EXPLANATION OF PROGRAM
L!EE$EB=K
Step
0000
0001
5.2.8 Shift instruction (SFT)
+
Instruction
LDI
M I 7
OUT T O
'RSTM16-
SFT M I 6
L
Codina
Instruct ion
RST M I 6
LD
M I 7
SFT M I 6
F]
Temporary memory shift
0
Arithmetic operation principle
(Head)
By giving SFT instruction to temporary memory
(M), I-bit shift register can be constituted.
If Mn-l'= 1
+
-
Mn
=
1
If Mn-1
=
0
+-
Mn =
0
1
instruction.
Mn
M n + l M n + 2 M n + 3
0
0
0
- - I - -
Establish Mn
=
0 after SFT
0
_----
0
1
0
K=lO
o
o
o
o
~
~
~
K=lO
o
o
o
o
~
~
~
PLSM15
SETMG
1
I t is necessary to set Mn, which is the head of shift
register, at "1" by SET instruction.
Note: Do not give SFT instruction
to
M O because
M255 may possibly shift to MO. For the
same reason, do not give SFT instruction to
M254.
t % J q
LD
M I 5
I
0002
I
K10
I
I
0007
I
LD
M I 7
I
I
0008
I
SFT
M10
I
I
0009
I
SFT
M9
I
I
0010
I
SFT M8
I

Advertisement

Table of Contents
loading

Table of Contents