Mitsubishi Electric MELSEC-Q/L Programming Manual page 260

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
[Ladder Mode]
[Operation]
b15
b0
D100
6789
(BIN)
D101
7821
(BIN)
D102
5432
(BIN)
D103
3520
(BIN)
D0
4
• 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]
[Operation]
b15
b0
D100
12345
(BIN)
D101
8701
(BIN)
D102
3502
(BIN)
6 BASIC INSTRUCTIONS
258
6.2 Arithmetic Operation Instructions
[List Mode]
b15
b0
R0
1234 (BIN)
R1
2032 (BIN)
R2
3252 (BIN)
R3
1000 (BIN)
[List Mode]
b15
b0
8765
(BIN)
Step
Instruction
b15
D200
8023
(BIN)
D201 9853
(BIN)
D202
2180
(BIN)
D203
2520
(BIN)
Step
Instruction
b15
R0
3580 (BIN)
R1
64 (BIN)
R2
5263 (BIN)
Device
b0
Device
b0

Advertisement

Table of Contents
loading

Table of Contents