Mitsubishi Electric M800VW Series Programming Manual page 209

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 multiplication and division operations
Setting
Bit devices
data
X
Y
M
L
F
S1
S2
D
2
2
2
2
2
△ 1: S1 and S2 cannot be specified as constant at the same time.
△ 2: This is not available with B/(P).
[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 number of device to store the result of multiplication or division
 Functions
B*
 Multiplies BCD 4-digit data designated by "S1" and BCD 4-digit data designated by "S2", and stores the result in the device
designated by "D".
S1
5
6 7
8
 The values for "S1" and "S2" can be designated between 0 and 9999 (BCD 4-digit).
B/
 Divides BCD 4-digit data designated by "S1" and BCD 4-digit data designated by "S2", and stores the result in the device
designated by "D".
S1
5
6
7
8
 0 to 9999 (BCD 4-digit) for S1, and 1 to 9999 (BCD 4-digit) for S2 can be designated.
IB-1501667-B
Usable devices
B SB
T SM V
T
C
2
2
2
Command
Command
Meaning
(Upper 4 digits)
S2
0
8 7
6
0
S2
0
8
7
6
0
Digits higher than those which were designated
will be read as 0.
Word devices
D
R/ZR W SW SD
Z
D+1
D
(Lower 4 digits)
4
9 7
3 9
2
8
D
D+1(Remainder)
0
0
6
0
4
2
2
188
Digit
Con-
Pointer
designa-
Index
stant
tion
K
H
P
1
1
1
1
indicates the signs B* /B/
S1 S2
D
P
S1 S2
D
Data type
BCD 4-digit
BCD 8-digit

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents