499
EREXP, EREXPP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.2
1
EREXP, EREXP
P
Operat
i
on
E
rror
(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.
Program
E
xamp
l
e
(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]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The data format in the device specified by is not 0 or 1.
A value other than 0 to 9 exists in the each digit of + 1 and + 2.
The format designation made by + 3 is not 0 or 1.
The data format in the device specified by + 3 is not 0 or 1.
The exponent data in the device specified by + 4 is not within the
range from 0 to 38.
The decimal fraction digit designated in is not within the range from 0
to 7.
––
4101
The range of the device specified by exceeds that of the
corresponding device.
––
––
––
––
S1
S1
S1
S1
S1
S1
S2
S1
I
nstruct
i
on
De
vi
ce
Step
D0
D10
D1
D2
D3
D4
1
4567
H
0123
H
1
3
3
1234567
H
(BCD 7 digits)
D101
D100
1. 2 3 4 5 6 7