Mitsubishi MELSEC QCPU Programming Manual page 199

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
[Program Example]
(1) When X20 is ON, the program performs additions of the following data:
• The data in the number (value stored in D0) of devices starting from D100
• The data in the number (value stored in D0) of devices starting from R100
Then the program stores the addition results at the number (value stored in D0) of devices
starting from D200.
[Ladder Mode]
b15 - - - - - - - b0
D100
6789
(BIN)
D101
7821
(BIN)
D102
5432
(BIN)
D103
3520
(BIN)
D0
(2) When X1C is ON, the following program subtracts the constant 8765 from the data in three
devices starting from D100.
Then the program stores the subtraction results at the number of the three devices starting
from R0
[Ladder Mode]
b15 - - - - - - - b0
D100
12345
(BIN)
D101
8701
(BIN)
D102
3502
(BIN)
6 - 48
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
b15 - - - - - - - b0
R0
R1
+
R2
R3
4
b15 - - - - - - - b0
-
[List Mode]
Steps
Instruction
1234 (BIN)
2032 (BIN)
-3252 (BIN)
-1000 (BIN)
[List Mode]
Instruction
Steps
5
8765
(BIN)
MELSEC-Q/QnA
Device
b15 - - - - - - - b0
D200
8023
(BIN)
D201 9853
(BIN)
D202
2180
(BIN)
D203
2520
(BIN)
Device
K8765
K3
b15 - - - - - - - b0
R0
3580 (BIN)
R1
-64 (BIN)
R2
-5263 (BIN)
6 - 48

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents