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:
-1022
0, 2
• The value of the specified device is
• The result of addition/subtraction exceeds the following range (Operation results in an
overflow):
1024
2
Program Example
(1) The following program adds the 64-bit floating decimal point type real numbers at D3 to D6
and the 64-bit floating decimal point type real numbers at D10 to D13 when X20 goes ON,
and outputs the result at R0 to R3.
[Ladder Mode]
[Operation]
D6 D5
5961.437
(2) The following programs subtracts the 64-bit floating decimal point type real numbers at D20
to D23 from the 64-bit floating decimal point type real numbers at D10 to D13, and stores the
result at D30 to D33.
[Ladder Mode]
SM
400
[Operation]
D13 D12
D11
97365.203
| Contents of designated device | < 2
| Result of operation |
D4
D3
D13 D12
D11
12003.200
10
20
D10
D23 D22
D21
76059.797
1024
0.
[List Mode]
Step
Instruction
D10
R3 R2
R1
17964.637
[List Mode]
Instruction
Step
30
D20
D33 D32
D31
D30
21305.406
ED+(P),ED-(P)
(Error code: 4140)
(Error code: 4140)
(Error code: 4141)
Device
R0
Device
SM 400
20
30
6-53
1
2
3
4
4
6
7
8