Mitsubishi MELSEC Q Series Programming Manual page 267

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

Advertisement

Program Example
(1) 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.
[Ladder Mode]
[Operation]
b31
600000
R1,R0
R3,R2
-800000
R5,R4
-123456
(2) 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]
[Operation]
b31
D101,D100
D103,D102
D105,D104
D107,D106
D109,D108
b0
123456
b0
b31
12345
D51,D50
54321
D53,D52
D55,D54
-12345
-54321
D57,D56
D58,D58
99999
[List Mode]
Step
Instruction
b31
b0
723456
D31,D30
D33,D32
-676544
D35,D34
0
[List Mode]
Step
Instruction
b0
b31
11111
R101,R100
-11111
R103,R102
R105,R104
22222
-22222
R107,R106
R109,R108
33333
DBK+(P),DBK-(P)
Device
Device
b0
1234
65432
-34567
-32099
66666
6-65
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