5. SEQUENCE INSTRUCTIONS
5
−
17
MELSEC-A
(5) A negative number (-32768 to -1) cannot be used as a set value. When the set
value is 0, the same processing as for 1 is performed.
(6) For the counting process of counters, refer to the ACPU Programming Manual
(Fundamentals).
Execution Conditions This instruction is executed per scan irrespective of the operation result of the
instructions preceding the OUT instruction.
Program Examples OUT
(1) Program which switches an output at the output unit.
(2) Program which turns on Y10 and Y14 10 seconds after X0 turns on.
(3) Program which uses the BCD data of X10 to 1F as the set value of the timer.
•
Coding
0 LD
X005
1 OUT
Y033
2 LD
X006
3 OUT
Y034
4 OUT
Y035
5 END
•
Coding
0 LD
X000
1 OUT
T1
K100
2 LD
T1
3 OUT
Y010
4 OUT
Y014
5 END
(
)
(
)
(
)
X005
X006
Y033
Y034
Y035
0
2
X000
(
)
(
)
(
)
T1
K100
T1
Y010
Y014
0
2
Data of X10 to 1F is converted into BIN and
stored into D10.
(
)
(
)
0
6
8
Y015
X000
X002
T2
P
K4
BIN X010 D10
D10
T2
•
Coding
0 LD
X000
1 BINP
K4X010
D10
6 LD
X002
7 OUT
T2
D10
8 LD
T2
9 OUT
Y015
0 END
When T2 counts out, Y15 turns on.
When X2 turns on, the data stored in D10 is
counted as a set value.
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......