EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 263

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...
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
261
6
Program example
The following program adds the value data stored at R0 to R5 to the constant, and then stores the operation result into D30
to D35, when M0 is turned on.
The following program subtracts the value data stored at D50 to D59 from the value data stored at D100 to D109, and then
stores the operation result into R100 to R109, when M0 is turned on.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
123456
b31 b0
600000
-800000
-123456
R3,R2
R5,R4
R1,R0
b31 b0
723456
-676544
0
D33,D32
D35,D34
D31,D30
+
Step
Instruction
Device
b31 b0
12345
54321
-12345
-54321
99999
D103,D102
D105,D104
D101,D100
D107,D106
D109,D108
b31 b0
11111
-11111
22222
-22222
33333
D53,D52
D55,D54
D51,D50
D57,D56
D58,D58
b31
1234
65432
-34567
-32099
66666
R103,R102
R105,R104
R101,R100
R107,R106
R109,R108
b0

Table of Contents

Related product manuals