Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 260

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
• In safety programs executed by the Safety CPU, only the following safety devices and constants can be used.
Operand
Bit
SA\X, SA\Y, SA\M, SA\SM, SA\B
(s1)
(s2)
(d)
Processing details
• These instructions divide the 32-bit binary data in the device specified by (s1) by the 32-bit binary data in the device
specified by (s2), and store the operation result in the device specified by (d).
(s1)
(s1)+1
b31
b16 b15
b0
···
···
÷
567890 (BIN)
• As the operation result when a word device is specified, the quotient and remainder are stored in 64 bits. The quotient is
stored in lower 32 bits, and the remainder is stored in upper 32 bits. When a bit device is specified, only quotient is stored in
32 bits.
Operation error
Error code
Description
(SD0)
3400H
The value (divisor) in the device specified by (s2) is 0.
6 BASIC INSTRUCTIONS
258
6.2 Arithmetic Operation Instructions
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
(s2)
(s2)+1
(d)+1
b31
b16 b15
b31
b0
···
···
···
123456 (BIN)
U\G, J\,
Z
U3E\(H)G
Word
SA\T, SA\ST, SA\C, SA\D, SA\W, SA\SD
(d)
(d)+2
(d)+3
b16 b15
b31
b16 b15
b0
···
···
···
4 (BIN)
74066 (BIN)
Double word Indirect
specification
LT, LST,
LZ
LC
b0
Constant
Others
K, H E
$
Constant
K, H

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents