Mitsubishi Electric MELDAS 60 Series Programming Manual page 61

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

Advertisement

Program example
(1) Program to turn Y30 ON when X0 turns ON ten times, and to turn Y30 OFF when X1 turns ON.
X0
10
C10
14
X1
16
(2) Program to set C10 setting value to 10 when X0 turns ON, and to 20 when X1 turns ON.
X0
10
X1
14
X3
18
C10
22
C10 K10
Y30
RST C10
MOV
K10
D0
10 is stored in D0 when X0 turns ON.
20 is stored in D0 when X1 turns ON.
MOV
K20
D0
C10 counts the data stored in D0 as the setting value.
C10 D0
Y30
Y30 turns ON when C10 counts up.
- 53 -
Coding
No. of
Com-
steps
mand
10
LD
X0
11
OUT
C10 K10
14
LD
C10
15
OUT
Y30
16
LD
X1
17
RST
C10
19
Coding
No. of
Com-
steps
mand
10
LD
X0
11
MOV
K10 D0
14
LD
X1
15
MOV
K20 D0
18
LD
X3
19
OUT
C10 D0
22
LD
C10
23
OUT
Y30
24
OUT C
Device
Device

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents