Word Data 1 Word Shift To Right - Mitsubishi Electric SV13/22 Programming Manual

Table of Contents

Advertisement

APPENDICES
4.2

Word Data 1 Word Shift to Right

Downloaded from
ManualsNet.com
(1) A program for shifting to the right a range of devices that comprises n points
and starts with a designated word device is shown here.
Before
execution
0 is entered here
After
execution
(2) Word data can be shifted one word to the right by using the BMOV (P)
instruction and RST instruction.
The format for a program for shifting data one word to the right by using the
BMOV (P) instruction and RST instruction is shown in Figure 4.2.
(1) S, D1, D2, and n are explained below.
S
: Head number of the devices to be shifted to the right
D1 : Number of (word device designated by S+1) device
D2 : Final device number of word devices to be shifted to be shifted to right
n
: Number of shifted devices
(2) (Note): BMOV(P) indicates the BMOV instruction and the BMOVP
instruction.
Fig.4.2. Format for Right Shift Using BMOV(P) Instruction and RST Instruction
search engine
Shift range (n)
D+(n-1) D+(n-2) D+(n-3)
0
Execution command
(Note)
BMOV(P)
APP − 41
D+2
D+1
D
S
D1 n
RST D2

Advertisement

Table of Contents
loading

This manual is also suitable for:

A172shcpunA171shcpun

Table of Contents