Mitsubishi Electric MELDAS C6 Programming Manual page 266

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
(1) Program to rotate the D10, 11 data 3 bits to the right when M0 turns ON.
XA
10
M0
15
(pulse coding)
Before execution
B0 before
execution
(n=1)
Transition
B0 when n=1
(n=2)
B0 when n=2
(n=3)
After execution
8. Function Commands
DRCR, DRCRP
DMOV
K1
DRCR
D10
D11
Carry flag
(SM12)
B31B30B29
B28B27
*
0 0 0 0 0
1
*
0 0 0 0
0
1
*
0 0 0
0
0 1
*
0 0
*The carry flag is set to 1 or 0 before execution.
Right rotation of data using DRCR command
- 257 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
D10
steps
mand
10
LD
11
DMOV K1
K3
15
LD
16
DRCR
19
D10
B18
B17
B16
B15
B14
B5 B4 B3
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0
0 0 0 0 0 0
Device
XA
D10
M0
D10
K3
B2 B1 B0
1
To carry flag
To carry flag
To carry flag

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents