EasyManuals Logo

Mitsubishi FX1N Series Programming Manual

Mitsubishi FX1N 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 FX1N Series

Questions and Answers:

Question and Answer IconNeed help?

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

Mitsubishi FX1N Series Specifications

General IconGeneral
Programming LanguageLadder Logic
Output TypeRelay, Transistor
Operating Temperature0 to 55°C
Power Supply100-240V AC or 24V DC
Program Capacity8K steps
Communication PortsRS-422
Data Memory8000 words
High-speed CountersUp to 6 channels
Expansion ModulesAvailable
Pulse Output2 points

Related product manuals