Mitsubishi Electric MELDAS 60 Series Programming Manual page 159

Plc programming
Hide thumbs Also See for MELDAS 60 Series:
Table of Contents

Advertisement

Program example
Program to rotate the D10, 11 details 3 bits to the right when M0 turns ON.
XA
10
M0
15
(pulse coding)
Before execution
Transition
After execution
DMOV
DROR
B31B30B29
B28B27
0 0 0 0 0
B0 before
execution
(n=1)
1
0 0 0 0
B0 when n=1
(n=2)
0
1
0 0 0
B0 when n=2
(n=3)
0 0
1
0 0
Right rotation of data using DROR command
Coding
No. of
steps
D10
K1
10
11
D10
K3
15
16
19
D11
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
- 151 -
DROR
Com-
Device
mand
LD
XA
DMOV K1
D10
LD
M0
DROR
D10
K3
D10
B2 B1 B0
1
To B31
Carry flag
(SM12)
1
To B31
0
0 0 0 0 0 0
To B31
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents