Mitsubishi MELSEC Q Series Programming Manual page 263

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

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]
[Operation]
b15
D100
6789
D101
7821
D102
5432
D103
3520
D0
(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]
[Operation]
b15
D100
12345
D101
8701
D102
3502
b0
(BIN)
R0
(BIN)
R1
(BIN)
R2
(BIN)
R3
4
b0
(BIN)
(BIN)
(BIN)
[List Mode]
Step
Instruction
b15
b0
1234 (BIN)
2032 (BIN)
3252 (BIN)
1000 (BIN)
[List Mode]
Step
Instruction
b15
b0
8765
(BIN)
BK+(P),BK-(P)
Device
b15
b0
D200
8023
(BIN)
D201 9853
(BIN)
D202
2180
(BIN)
D203
2520
(BIN)
Device
b15
b0
R0
3580 (BIN)
R1
64 (BIN)
R2
5263 (BIN)
6-61
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents