Mitsubishi MELSEC Q Series Programming Manual page 622

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

Advertisement

EREXP(P)
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 format designated by
• A value other than 0 to 9 exists in the each digit of
• The format designation made by
• The exponent data designated by
• The decimal fraction digit designated by
• The device specified by
(For the Universal model QCPU, LCPU.)
Program Example
(1) The following program converts the BCD type floating decimal point format data being
stored in devices starting from D0 to 32-bit floating decimal point type real number data
based on the decimal fraction digit being stored at D10, and stores the result at D100 and
D101 when X0 goes ON.
[Ladder Mode]
[Operation]
D0
D1
D2
D3
D4
7-248
was neither 0 nor 1.
S1
exceeds the range of the corresponding device.
S1
1
4567
H
1234567
(BCD 7 digits)
H
0123
H
1
3
3
D10
+ 1 and
S1
+ 3 is something other than 0 or 1.
S1
+4 is outside the range of from 0 to 38.
S1
is outside the range of from 0 to 7.
S2
[List Mode]
Step
Instruction
D101
D100
1. 2 3 4 5 6 7
(Error code: 4100)
+ 2. (Error code: 4100)
S1
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4101)
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents