480
EVAL, EVALP
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 character string stored in the area starting from R0 to a 32-bit floating decimal point
type real number, and stores the result at D0 and D1 when X20 is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program converts the character string stored in the area starting from D10 to a 32-bit floating decimal point
type real number, and stores the result at D100 and D101 when X20 is turned ON.
[Ladder Mode]
[List Mode]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The integer portion or the decimal fraction portion contains a character
other than one in the range from "30
H
" (0) to "39
H
" (9).
There are two or more "2E
H
" (.) in the character string specified in .
The exponent portion contains the code (character) other than "45
H
"(E),
"2B
H
"(+), "45
H
"(E) or "2D
H
"( ), or the string contains more than one
exponent portion.
Data after conversion is not within the following range.
0, 2
-126
| Data after conversion |
2
128
The number of characters in the character string following is either 0
or more than 24.
4101
The code "00
H
" does not appear in the range from to the relevant
device.
D
S
S
I
nstruct
i
on
De
vi
ce
Step
R1
2D
H
(
-
)
20
H
(space)
30
H
(0)
31
H
(1)
b15
b8b7
b0
R2
2
E
H
(
.
)
32
H
(2)
33
H
(3)
3
4
H
(
4
)
R3
35
H
(5)
32
H
(2)
31
H
(1)
R
4
R5
00
H
I
gnored
T
hese
are
cut
D1
5 2
D0
R0
-
1
.
23
4
1
.
2 3
4
5 2 1
0
-
I
nstruct
i
on
De
vi
ce
Step