Batch Shift Of Temporary Memory M - Mitsubishi Electric MELSEC-KOJIU Instruction Manual

Table of Contents

Advertisement

L
l d BL8BE=K
5 . EXPLANATION OF PROGRAM
5.4.6 Batch shift of temporary memory M
Temporary memory M shift (SFT) instruction available in the standard CPU is of one bit shift
instruction, and several steps are required for shift instruction with plural bits.
When the function F114 is used, contents of desired number of bits may be batch shifted left-
ward or rightward from the specified head No. of M.
5.4.6.1 Functions
Function
No.:
F114
Note:
M may be specified between the
Head No. of M:
D110
- 1
Binary numerals
range from M O to M249. If
Number of bits t o be shifted: D111
1 - 1
Binary numerals
number o f bits specified in
D 1 1 1
exceeds this range, shift is not
executed.
(leftwardhightward)
Leftward
Right ward
Shift direction
[ D 1 1 2 1 F ]
IET-1
shift
shift
(1
)
The head No. of shift register to be formed is placed in D110. The No. should be junior one
no matter whether shift is leftward or rightward, and written with binary numerals* in
DIIO.
(2) The length of shift register, that is, number of bits to be shifted, is written in D l l l with
binary numerals*.
*
Writing with binary numerals
When decimal numeral "n" is written on PU or GPP in the form of MOV Kn D110,DI 11,
it
is automatically converted into bin2ry numerals. However, binary numeral should be
used as converting from decimal numeral when head
No.
and number of bits are specified
in BCD code.
(3)
Direction of shift should be specified in D112. When the contents in D112 are "O", the shift
is leftward from junior
No.
to senior No. The shift, however, is rightward from senior No.
to junior No. when the contents are "1
".
(4) Circuit composition.
A
B
1
Shifilulse
I
I
t
Shift signal is converted into pulse
)Head No. M60 is entered in
D1
10.
,Number of bits "30" is entered in D111.
B
Shift direction is specified
in
D112.
signal,
("0" for leftward "1" for rightward)
0
Shift is executed.
Leftward or rightward shift by one bit
Fig. 5.4.6.1 Shift Register Circuit Composition

Advertisement

Table of Contents
loading

Table of Contents