502
SIND, SINDP
(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RADD and DEGD instructions.
(3) When the operation results in -0 or an underflow, the result is processed as 0.
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 conducts a SIN operation on the angles stored in the four BCD digits from X20 to X2F and stores
the results at D0 to D3 as 64-bit floating decimal point type real numbers.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 150]
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
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
I
nputs
an
ang
l
e
used
for
S
IN
operat
i
on
(
)
.
Con
v
erts
the
i
nput
ang
l
e
i
nto
a
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
(
)
.
Con
v
erts
the
con
v
erted
ang
l
e
i
nto
a
rad
i
an
v
a
l
ue
(
)
.
E
xecutes
S
IN
operat
i
on
us
i
ng
the
con
v
erted
rad
i
an
v
a
l
ue
(
)
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
X2
F
BCD
v
a
l
ue
0
D30
1 5 0
X20
B
IN
b15
b0
B
IN v
a
l
ue
RADD
S
IN
D
150
FLT
D
D21
150
D20
D23 D22
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D11
2
.
61799
4
D10
D13 D12
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D1
0
.
500000
D0
D3
D2
1
Con
v
ers
i
on
to
B
IN
2
Con
v
ers
i
on
to
f
l
oat
i
ng
-
po
i
nt
3
Con
v
ers
i
on
to
rad
i
an
4
S
IN
operat
i
on