EasyManuals Logo

Mitsubishi FX1S Series User Manual

Mitsubishi FX1S Series
466 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 #267 background imageLoading...
Page #267 background image
FX Series Programmable Controlers Applied Instructions 5
5-147
5.11.1 SIN (FNC 130)
Contents:
This instruction performs the mathematical SIN
operation on the floating point value in S. The
result is stored in D.
Points to note:
a) The instruction must use the double word format: i.e., DSIN or DSINP. All source and
destination data will be double word; i.e., uses two consecutive data registers to store the
data (32 bits).
The source data is regarded as being in floating point format and the destination is also in
floating point format.
b) The source value must be an angle between 0 to 360 degrees in radians; i.e.,
0° ≤ S< 360°
Radian Angles
Below is an program example of how to calculate angles in radians using floating point.
Mnemonic Function
Operands
Program steps
SD
SIN
FNC 130
(Sine)
Calculates the
sine of a floating
point value
D - must be in floating
point number format
(32 bits).(radians)
D - a floating point
value
(32 bits).
DSIN,
DSINP:
9steps
FX
1S
FX
1N
FX
2N
FX
2NC
PULSE-P
16 BIT OPERATION
32 BIT OPERATION
DSIN
X03
D510
D314
X001
K45 D0MOVP
X002
D0 D4FLT
K90 D0MOVP
M8000
K31415926 K1800000000
D20DEDIV
D4
D20 D30
DEMUL
D30 D100DSIN
[ S ] [ D ]
K45 degrees to D0
Convert D0 to float in D4,D5
K90 degrees to D0
Calculate π in radians (π/180)
Store as a float in D20,D21
Calculate angle in radians in D30,D31
(deg° × π/180 = rads)
Calculate SIN of angle in D100

Table of Contents

Other manuals for Mitsubishi FX1S Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi FX1S Series and is the answer not in the manual?

Mitsubishi FX1S Series Specifications

General IconGeneral
ModelFX1S Series
I/O Points10 to 30 points
Program Memory2000 steps
Power SupplyAC
CommunicationRS-422
ExpansionNo expansion
Programming LanguageLadder Logic
Input Voltage100-240V AC
Built-in High-Speed CounterUp to 60 kHz (single-phase)
WeightApprox. 0.3 kg
Dimensions90 x 60 x 75 mm

Related product manuals