512
ASIND, ASINDP
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 inverse sine of the 64-bit floating decimal point real number at D0 to D3, and outputs
the angle to the 4 BCD digits at Y40 to Y4F.
[Ladder Mode]
[List Mode]
[Operations involved when the D0 to D3 value is 0.5]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value specified by is within the double-precision floating-point
range and not within the range between -1.0 and 1.0.
––
––
––
––
4140
The specified device value is not within in 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
Ca
l
cu
l
ates
an
ang
l
e
(rad
i
an
v
a
l
ue)
by
S
IN
operat
i
on
(
)
.
Con
v
erts
the
rad
i
an
v
a
l
ue
i
nto
an
ang
l
e
(
)
.
Con
v
erts
the
ang
l
e
i
n
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
i
nto
an
i
nteger
(
)
.
Outputs
the
i
nteger
-
con
v
erted
ang
l
e
to
a
d
i
sp
l
ay
de
vi
ce
(
)
.
1
1
2
3
4
Step
I
nstruct
i
on
De
vi
ce
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D1
0
.
5
D0
D3
D2
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D21
30
D20
D23 D22
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D11
0
.
5235988
D10
D13 D12
Con
v
ers
i
on
to
B
IN
INT
D
BCD
operat
i
on
BCD
AS
IN
D
Con
v
ers
i
on
to
ang
l
e
D
E
GD
Y4F
BCD
v
a
l
ue
0 0 3 0
Y4
0
D30
b15
b0
B
IN v
a
l
ue
30
S
IN
operat
i
on
1
1
2
3
4