Mitsubishi Electric M800VW Series Programming Manual page 428

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The value designated by (S) is a negative number. (Error code: 34)
- The value designated by (S) is "0". (Error code: 34)
- The designated device value is not within the following range. (Error code: 35)
-1022
0, 2
≤ | Designated device value | < 2
- The designated device value is "-0", unnormalized number, nonnumeric, or ± ∞ . (Error code: 35)
- The operation result exceeds the following range. (When an overflow occurs) (Error code: 36)
| Operation result | < 2
 Program example
 The following program calculates the common logarithm of the 64-bit floating-point real number at D600 to D603 when M0
turns ON, and stores the operation result at D123 to D126.
[Ladder mode]
M0
0
10
Log
1024
1024
EDMOV E2.806 D600
LOG10D D600 D123
END
[Operation]
D603
D602
D601
D600
2.806
10
[List mode]
Steps
Inst.
Device
0
LD
M0
1
EDMOV
E2.806
D600
7
LOG10D
D600
D123
10
END
D126
D125
D124
D123
0.448088
407
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents