Mitsubishi Electric A800 Programming Manual page 165

800 series, plc function
Hide thumbs Also See for A800:
Table of Contents

Advertisement

Basic instruction (32-bit)
D/
• Executes division of the BIN data specified with
D
specified with
.
b31
• The division results are stored as the quotient and remainder using 64 bits for a word device, or stored as only the quotient
using 32 bits for a bit device.
Quotient: Stored in the lower 32 bits.
Remainder: Stored in the upper 32 bits. (Only stored for word devices.)
• -2147483648 to 2147483647 (BIN 32-bit) can be specified in
• Positive/negative judgment of the
(Both quotient and remainder have a sign.)
(0: positive, 1: negative)
Execution condition
The execution conditions for multiplication/division instructions are as follows.
Multiplication/division
164
Sequence program
+1
+1
S1
S2
S1
b16
b15
b0
b31 b16
567890 (BIN)
123456 (BIN)
/
D
S1 S2
,
,
and
command
S1
and BIN data specified with
Quotient
D
+1
S2
b15
b0
b31 b16
b15
4 (BIN)
S1
S2
or
.
D
+2 data is performed by the most significant bit (b31).
Executed every
scan.
Executed only once.
S2
, and stores the results in the device
Remainder
D
D
+3
D
+2
b0
b31 b16
b15
b0
74066 (BIN)
Executed every
scan.
Executed only once.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F800

Table of Contents