6. BASIC INSTRUCTIONS
6
−
12
MELSEC-A
Execution Conditions
Program Examples +
Program which adds the content of A0 to the content of D3 and outputs the result to
Y38 to 3F when X5 turns on.
-
Program which outputs the difference between the set value and present value timer
T3 to Y40 to 53 in BCD.
•
Coding
0 LD
X005
1 +P
D3
A0
K2Y038
8 END
0
X005
P
K2
+ D3
A0
Y038
•
Coding
0 LD
X003
1 OUT
T3
K18000
2 LD
M9036
3 -P
K18000 T3
D3
10
DBCD
D3
K5Y040
19
END
(
)
0
2
X003
M9036
K18000
T3
P
K
- 18000 T3
D3
K5
DBCD D3
Y040
Addition/subtraction
command
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
OFF
ON
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......