EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 260

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
258
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Program example
The following program adds, when X20 is turned ON, the data stored at D100 to D103 to the data stored at R0 to R3 and
stores the operation result into the area starting from D200.
The following program subtracts, when X1C is turned ON, the constant 8765 from the data at D100 to D102 and stores the
operation result into the area starting from R0.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
(BIN)
D101
(BIN)
(BIN)
(BIN)
b15 b0
D100
D102
D103
1234 (BIN)
R1
2032 (BIN)
1000
(BIN)
3252 (BIN)
b15 b0
R0
R2
R3
6789
7821
3520
5432
8023 (BIN)
D201
9853 (BIN)
2520
(BIN)
2180 (BIN)
b15 b0
D200
D202
D203
4D0
Step
Instruction
Device
(BIN)
D101
(BIN)
(BIN)
b15 b0
D100
D102
12345
8701
3502
3580 (BIN)
R1
64 (BIN)
5263 (BIN)
b15 b0
R0
R2
8765 (BIN)
b15 b0

Table of Contents

Related product manuals