Mitsubishi Electric M800VW Series Programming Manual page 426

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)
-126
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 32-bit floating-point real number data at D600 and D601
when M0 turns ON, and stores the operation result at D123 and D124.
[Ladder mode]
M0
0
7
Log
128
128
EMOV E2.806 D600
LOG10 D600 D123
END
[Operation]
D601
D600
2.806
10
[List mode]
Steps
Inst.
Device
0
LD
M0
1
EMOV
E2.806
D600
3
LOG10
D600
D123
7
END
D124
D123
0.448088
405
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents