Mitsubishi MELSEC Q Series Programming Manual page 249

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) Values which can be designated at
-126
0, 2
| Designated value (stored value) | < 2
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The contents of the designated device or the result of the addition are not "0", or not within
the following range:
-126
0, 2
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU)
• The value of the specified device is
(For the Basic model QCPU, High Performance model QCPU, Process CPU, Redundant
CPU)
*2: There are CPU modules that will not result in an operation error if
Refer to Section 3.2.4 for details.
• The result of addition and subtraction exceeds the following range. (The overflow occurs.)
(For the Universal model QCPU, LCPU)
128
2
| Result of addition and subtraction |
• The value of the specified device is
(For the Universal model QCPU, LCPU)
Program Example
(1) The following program adds the 32-bit floating decimal point type real numbers at D3 and D4
and the 32-bit floating decimal point type real numbers at D10 and D11 when X20 goes ON,
and stores the result at D3 and D4.
[Ladder Mode]
[Operation]
D4
D3
5961.437
(2) The following program subtracts the 32-bit floating decimal point type real number at D10
and D11 from the 32-bit floating decimal point type real numbers at D20 and D21, and stores
the result of the subtraction at D20 and D21.
[Ladder Mode]
[Operation]
D21
D20
97365.203
and
S
| Contents of designated device | < 2
D11
D10
12003.200
D11
D10
76059.797
and which can be stored, are as follows:
D
128
128
*2
0.
0 is specified.
0, unnormalized number, nonnumeric, and ±
[List Mode]
Instruction
Step
D4
D3
17964.637
[List Mode]
Instruction
Step
D21
D20
21305.406
E+(P),E-(P)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4141)
.
(Error code: 4140)
Device
Device
6-47
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents