258
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
• 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]
(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
(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