Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
6-64
DBK+(P),DBK-(P)
(6) The following will happen if an overflow occurs in an operation result:
The carry flag in this case is not turned on.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
A negative value is specified for n. (Error code: 4100)
The range of the n-point devices starting from the device specified by , , or
exceeds the specified device range. (Error code: 4101)
The range of the n-point devices starting from the device specified by overlaps with the
range of the n-point devices starting from the device specified by . (Exclude the case
that and specify the same device. (Error code: 4101)
The range of the n-point devices starting from the device specified by overlaps with the
range of the n-point devices starting from the device specified by . (Error code: 4101)
(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] [List Mode]
[Operation]
(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] [List Mode]
[Operation]
K2147483647
(7FFFFFFF
H)
K 2147483647
(80000001
H)
K
2
K 2
K 2147483647
K2147483647
(00000002
H
)
(
80000001
H
)
(
FFFFFFFE
H )
(
7FFFFFFF
H
)
S1
S2
D
S1
D
S1
D
S2
D
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