497
EMOD, EMODP
1
2
3
4
4
6
7
8
7.11
Char
acter
string processing inst
ructions
7.11.2
0
EMOD
, EMODP
(2) The 7th digit of the significant digits being stored at +1 and +2 is rounded off to make a 6-digit number.
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 breaks down the 32-bit floating decimal point type real number data stored at D0 and D1 into BCD
according to the decimal fraction digits as designated by R10, and stores the results into the area starting from D100
when X0 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The decimal fraction digit specified by is not within the range
between 0 and 7.
The 32-bit floating point real number specified by is not within the
following range:
0. 2
-126
| Device |
2
128
––
4101
The range of the device specified by exceeds that of the
corresponding device.
––
The range of the device specified by exceeds that of the
corresponding device.
––
––
––
––
4140
The specified device value is -0, unnormalized number, nonnumeric, or
±
.
––
––
––
––
D
D
+1
3
0
1234570
H
1
3
+4
+3
+2
+1
1
1234570
. 23456789
123456789
S1
S2
D
D
D
D
D
S1
Rounded off
S2
S1
D
D
I
nstruct
i
on
De
vi
ce
Step
D1
D104
D103
D102
D101
D100
R10
0.987654
3
D0
1
9876540
H
1
4