Mitsubishi Electric MELDAS C6 Programming Manual page 260

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
(1) Program to rotate the D10 data 3 bits to the right when M0 turns ON.
M0
10
(Pulse coding)
D10 before execution
B0 before execution
(n=1)
Transition
B0 when n=1
(n=2)
B0 when n=2
D10 after execution
(n=3)
8. Function Commands
ROR, RORP
K3
ROR
D10
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0 1
0
0
0
Right rotation of data using ROR command
- 251 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
steps
mand
10
LD
11
ROR
14
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
M0
D10
K3
0
0
To B15
1
Carry flag
(SM12)
1
0
0
0
To B15
0
0
0
0
To B15
0
0
0
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents