Mitsubishi MELSEC-A Series Programming Manual page 124

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

6. BASIC INSTRUCTIONS
Execution Conditions
Program Examples
Addition/subtraction
OFF
command
P
+
Program which adds the content of A0 to the content of D3 and outputs the result to
Y38 to 3F when X5 turns on.
X005
P
+
D3
0
-
Program which outputs the difference between the set value and present value timer
T3 to Y40 to 53 in BCD.
X003
0
P K
M9036
2
-
DBCD D3
ON
Executed
per scan
Executed
only once
K2
A0
Y038
K18000
(
T3
)
18000 T3
D3
K5
Y040
6 − 12
Executed
per scan
Executed
only once
• Coding
0
LD
X005
1
+P
D3
A0
8
END
• Coding
0
LD
X003
1
OUT
T3
K18000
2
LD
M9036
3
-P
K18000
T3
10
DBCD
D3
19
END
MELSEC-A
K2Y038
D3
K5Y040

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents