Appendix4 Example Programs; Word Data 1 Word Shift To Left - Mitsubishi Electric SV13/22 Programming Manual

Table of Contents

Advertisement

APPENDICES

APPENDIX4 EXAMPLE PROGRAMS

4.1

Word Data 1 Word Shift to Left

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

A172shcpunA171shcpun

Table of Contents