Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-61
BK+(P),BK-(P)
1
2
3
4
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.13 Block addition and subtraction (BK+(P),BK-(P))
Program Example
(1) 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.
[Ladder Mode] [List Mode]
[Operation]
(2) 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]
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