Mitsubishi MELSEC Q Series Programming Manual page 626

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

SIND(P)
Program Example
(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]
Step
[Operations involved when X20 to X2F designate a value of 150]
X2F
0
BCD value
7-252
Instruction
Device
D30
1 Conversion
X20
b15
to BIN
1 5 0
150
BIN value
BIN
D13 D12
D11
2.617994
64-bit floating-point
real number
Inputs an angle used for
SIN operation (
).
1
Converts the input angle into a
64-bit floating-point real number (
Converts the converted angle
into a radian value (
Executes SIN operation using the
converted radian value (
2 Conversion to
D23 D22
b0
floating-point
FLTD
64-bit floating-point
real number
D10
D3 D2
4 SIN operation
SIND
64-bit floating-point
real number
).
2
).
3
.
)
4
D21
D20
150
3 Conversion to radian
RADD
D1
D0
0.500000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents