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
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: ......