Mitsubishi MELSEC QCPU Programming Manual page 196

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
E/
(1) Divides floating decimal point type real numbers designated by
type real numbers designated by
Floating decimal point
(2) Values that can be designated by
-126
0, ±2
[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)
-126
0, ±2
• 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]
(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]
6 - 45
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
S2
+1
+1
S1
S1
S2
/
Floating decimal point
type real number
type real number
S1
| Designated value (stored value) | < ±2
| Contents of designated device/results of operation | < ±2
D4
D3
D11
36.78965
D11
D10
D21
52171.39
/
, and stores the result in the device designated by
+1
D
S2
Floating decimal point
type real number
,
or
, and values that can be stored, are as follows:
D
S2
128
[List Mode]
Steps
Instruction
D10
R1
11.92786
438.8218
[List Mode]
Instruction
Steps
D20
D31
9.73521
5359.041
MELSEC-Q/QnA
by floating decimal point
S1
D
D
128
Device
R0
Device
D30
6 - 45
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents