Mitsubishi Electric M800VW Series Programming Manual page 207

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.2 Arithmetic Operation Instructions
B+, B+P, B-, B-P: BCD 4-digit addition and subtraction operations
Setting
Bit devices
data
X
Y
M
L
F
S1
S2
D
△ : S1 and S2 cannot be specified as constant at the same time.
[Instruction symbol] [Execution condition]
B+, B-
B+P, B-P
 Setting data
Setting data
Data to be added to or subtracted from, or the first number of the device storing
S1
such data
Addition or subtraction data, or the head No. of device storing addition or subtrac-
S2
tion data
D
The head No. of the device which stores the results of addition or subtraction
 Functions
B+
 Adds the BCD 4-digit data designated by "S1" and the BCD 4-digit data designated by "S2", and stores the result of the
addition at the device designated by "D".
S1
5
6
7
8
 The values for "S1", "S2", and "D" can be designated between 0 and 9999 (BCD 4-digit).
 If the result of the addition operation exceeds 9999, the higher bits are ignored.
The carry flag in this case does not go ON.
6 4 3 2
IB-1501667-B
Usable devices
B SB
T SM V
T
C
Command
Command
Meaning
S2
1
2
3
4
3 5 8 3
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
D
6
9
1
2
0 0 1 5
186
Digit
Pointer
designa-
Index
tion
H
P
indicates the signs B+ /BB
S1 S2
D
P
S1 S2
D
Data type
BCD 4-digit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents