Mitsubishi Electric MELDAS 60 Series Programming Manual page 143

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

Advertisement

Program example
(1) Program that executes logical AND of the X30 to 47 24-bit data and D99, 100 data when X8 turns
ON, and transmit the results to M80 to 103.
X8
10
D100 , 99
X47 to 30
D100 , 99
(2) Program that executes logical AND of the D0, 1 32-bit data and R108, 109 when M16 turns ON,
and outputs the results to Y100 to 11F.
M16
10
DAND
K6X30
D99
DMOV
D99 K6M80
B31 B30 B29 B28 B27 B26 B25 B24 B23 B22
1
1
1
0
1
1
DAND
0
0
0
0
0
0
Interpreted as 0
B31 B30 B29 B28 B27 B26 B25 B24 B23 B22
0
0
0
0
0
0
Interpreted as 0
DAND
D0
R108
DMOV
R108 K8Y100
- 135 -
Logical AND the X30 to 47 data and D99, 100
data, and store the results in D99 to 100.
Transmit the D99, 100 data to M80 to 103.
Coding
No. of
Com-
steps
mand
10
LD
11
DAND K6X30 D99
14
DMOV D99
18
B4
B3 B2 B1 B0
1
1
0
1
0
1
X47 X46
X34 X33 X32 X31 X30
0
0
1
1
1
0
B4
B3 B2 B1 B0
0
0
0
1
0
0
Logical AND the D0, 1 and R108, 109 32-bit data,
and store the results in R108, 109.
Output the R108, 109 data to Y100 to 11F.
Coding
No. of
Com-
steps
mand
10
LD
11
DAND D0
14
DMOV R108
18
DAND
Device
X8
K6M80
0
1
1
1
0
1
0
0
1
Device
M16
R108
K8Y100

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents