5. SEQUENCE INSTRUCTIONS
5
−
18
MELSEC-A
(4) Program which turns on Y30 after X0 turns on 10 times and which turns off Y30
when X1 turns on.
(5) Program which changes the set value of C10 to 10 when X0 turns on and to 20
when X1 turns on.
(
)
(
)
0
2
4
X001
X000
C10
K10
C10
Y030
RST C10
•
Coding
0 LD
X000
1 OUT
C10
K10
2 LD
C10
3 OUT
Y030
4 LD
X001
5 RST
C10
8 END
When X1 turns on, 20 is stored to D0.
When X0 turns on, 10 is stored to D0.
(
)
(
)
0
6
12
14
C10
X000
X001
X003
P
K
MOV 10 D0
Y030
D0
C10
P
K
MOV 20 D0
C10 counts the data, which is stored in D0, as
a set value.
When C10 counts out, Y30 turns on.
•
Coding
0 LD
X000
1 MOVP K10
D0
6 LD
X001
7 MOVP K20
D0
12
LD
X003
13
OUT
C10
D0
14
LD
C10
15
OUT
Y030
16
END
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......