EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #503 background imageLoading...
Page #503 background image
501
SIND, SINDP
1
2
3
4
4
6
7
8
7.12 Special function instructions
7.12.2 SIND, SINDP
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 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)
Function
(1) The SIN (sine) value of the angle specified by is calculated and its result is stored into the device specified by .
7.12.2 SIND, SINDP SIN operatio n on floating-point data (Doubl e precision)
7.12.2
SIND, SINDP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
E
Other
Bit Word Bit Word
–– –– ––
–– –– –– ––
Inputs an angle used for SIN
operation ( ).
Converts the input angle into
a 32-bit floating-point real
number ( ).
Converts the converted angle
into a radian value ( ).
Executes SIN operati
on
using the converted radian value ( ).
1
2
3
4
Step Instruction Device
Conversion 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 value
0
D30
150
X20
Conversion to BIN
BIN
b15
b0
BIN value
Conversion to floating-point
FLT
150
150
2
.
617994 0
.
500000
Universal
LCPU
Basic
High
performance
Process
Redundant
SINDP
SIND
SINDP
SINDSD
S D
Command
Command
S
D
S
D
S
D
SIN (
)
+3
64-bit floating-point
real number
S
+2
S
S
+1
S
+3
64-bit floating-point
real number
D
+2
D
D
+1
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals