Mitsubishi Electric M800VW Series Programming Manual page 202

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
*, *P, /, /P: BIN 16-bit multiplication and division operations
Setting
Bit devices
data
X
Y
M
L
F
S1
S2
D
3
3
3
3
3
△ 1: S1 and S2 cannot be specified as constant at the same time.
△ 2: Set the PLC bit selection parameter "#6471/bit1" to "1" to use the Z device for "*".
Only even-numbered Z devices can be used.
△ 3: This is not available with "*P", "/", "/P".
[Instruction symbol] [Execution condition]
*, /
*P, /P
 Setting data
Setting data
Data to be added to or subtracted from, or the first number of the device storing
S1
such data
Multiplication or division data, or the number of the device storing multiplication or
S2
division data
D
The head number of device to store the result of multiplication or division
 Functions
 Multiplies BIN 16-bit data designated by (S1) and BIN 16-bit data designated by (S2), and stores the multiplication result in
the device designated by (D).
S1
b15
b0
5678 (BIN)
 If (D) is a bit device, designation is made from the lower bits.
(Example ) K1: Lower 4 bits (b0 to 3)
K4: Lower 16 bits (b0 to 15)
K8: 32 bits (b0 to 31)
 The values for (S1) and (S2) can be designated between -32768 and 32767 (BIN 16 bits).
 Judgments whether (S1),(S2), and (D) are positive or negative are made on the basis of the most significant bit (b15 for
(S1) and (S2), and b31 for (D)).
b15/b31
Judgment (+/-)
0
Positive
1
Negative
Usable devices
B SB
T SM V
T
C
3
3
3
Command
Command
Meaning
S2
b15
b0
1234 (BIN)
Con-
Word devices
stant
D
R/ZR W SW SD
Z
K
1
1
2,3
D+1
D
b31
b16
b15
b0
7006652 (BIN)
181
Digit
Pointer
designa-
Index
tion
H
P
1
1
indicates the signs * / /
S1 S2
D
P
S1 S2
D
Data type
BIN 16 bits
BIN 32 bits
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents