536
LOGD, LOGDP
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 seeks the natural logarithm of the value "10" set by D50, and stores the result at D30 to D33.
[Ladder Mode]
[List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value specified in is negative.
The value specified in is 0.
––
––
––
––
4140
The specified device value is not within the following range:
0, 2
-1022
| Specified device value | < 2
1024
The specified device value is -0.
––
––
––
––
4141
The operation result exceeds the following range (when an overflow
occurs):
2
1024
| Operation result |
––
––
––
––
S
S
Sets
data
used
for
natura
l l
ogar
i
thm
operat
i
on
(
)
.
Con
v
erts
the
operat
i
on
data
i
nto
a
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
(
)
.
E
xecutes
natura
l l
ogar
i
thm
operat
i
on
(
)
.
1
2
3
Step
I
nstruct
i
on
De
vi
ce
10
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D50
MOV
b15
b0
B
IN v
a
l
ue
10
Con
v
ers
i
on
to
f
l
oat
i
ng
-
po
i
nt
FLT
D
L
OG
operat
i
on
L
OGD
D
4
1
10
D
4
0
D
4
3 D
4
2
D31
2
.
302585
D30
D33 D32
1
2
3