6 - 45 6 - 45
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
E/
(1) Divides floating decimal point type real numbers designated by
S1
by floating decimal point
type real numbers designated by
S2
, and stores the result in the device designated by
D
.
+1
Floating decimal point
type real number
+1
+1
S1 S2
D
S1 S2
D
Floating decimal point
type real number
Floating decimal point
type real number
/
(2) Values that can be designated by
S1
,
S2
or
D
, and values that can be stored, are as follows:
0, ±2
-126
| Designated value (stored value) | < ±2
128
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The contents of the designated device or the result of the multiplication or division operation
are not "0", or not within the following range: (Error code: 4100)
0, ±2
-126
| Contents of designated device/results of operation | < ±2
128
• When the specified device contains -0 (Q4ARCPU)
(Operation error does not occur even if -0 is stored if SM707 is turned on.) (Error code: 4100)
[Program Example]
(1) The following program multiplies the floating decimal point real numbers at D3 and D4 and the
floating decimal point real numbers at D10 and D11, and stores the result at R0 and R1.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
D4
36.78965
D3
D11
11.92786
D10
R1
438.8218
R0
(2) The following program divides the floating decimal point real numbers at D10 and D11 by the
floating decimal point real numbers at D20 and D21, and stores the result at D30 and D31.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
D11 D10 D21
9.73521
D20
D31
5359.041
D30
/52171.39
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com