Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 256

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 16-bit binary data in the device specified by (s1) by the 16-bit binary data in the device
specified by (s2), and store the operation result in the device specified by (d).
(s1)
b15
b0
···
÷
5678 (BIN)
(d): Quotient
(d)+1: Remainder
• As the operation result, the quotient and remainder are stored in 32 bits. When a bit device is specified, the number of digit-
specified bits is used to store the quotient and remainder.
• QuotientStored in lower 16 bits.
• RemainderStored in upper 16 bits.
Operation error
Error code
Description
(SD0)
3400H
The value (divisor) in the device specified by (s2) is 0.
6 BASIC INSTRUCTIONS
254
6.2 Arithmetic Operation Instructions
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
(s2)
(d)
b15
b0
b15
···
···
1234 (BIN)
4 (BIN)
Double word
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Word
SA\T, SA\ST, SA\C, SA\D, SA\W, SA\SD
(d)+1
b0 b15
b0
···
742 (BIN)
Indirect
Constant
specification
LZ
K,
H
Constant
K, H
Others
E
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents