501
SIND, SINDP
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.2
S
IND, SIND
P
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 and D1 as 32-bit floating decimal point type real numbers.
[Ladder Mode]
[List Mode]
[Operations involved when X20 to X2F designate a value of 150]
: Angle data of which the SIN (sine) value is obtained or head number of the devices where the angle data is stored (real number)
: Head number of the devices where the operation result will be stored (real number)
F
unct
i
on
(1) The SIN (sine) value of the angle specified by is calculated and its result is stored into the device specified by .
SIND, SINDP
SIN operation on floating-point data (Double precision)
7.12.2
SIND, SINDP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
––
––
––
––
––
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
32
-
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
Con
v
ersion to radian
32-bit floating-point
real number
D21
D20
RAD
SIN operation
32-bit floating-point
real number
D11
D10
SIN
32-bit floating-point
real number
D1
D0
X2F
BCD
v
alue
0
D30
1 5 0
X20
Con
v
ersion to BIN
BIN
b15
b0
BIN
v
alue
Con
v
ersion to floating-point
FLT
150
1 5 0
2 . 6 1 7 9 9 4
0 . 5 0 0 0 0 0
Universal
LCPU
Bas
i
c
Hi
gh
performance
Process
Redundant
S
IN
DP
SIND
SINDP
S
IN
D
S
D
S
D
Command
Command
S
D
S
D
S
D
S
IN
(
)
+
3
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
S
+
2
S
S
+
1
S
+
3
6
4-
b
i
t
f
l
oat
i
ng
-
po
i
nt
rea
l
number
D
+
2
D
D
+
1
D