Fnc130 - Sin / Floating Point Sine - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.18 FNC130 – SIN / Floating Point Sine
Outline
This instruction obtains the sine value of an angle (in radians).
1. Instruction format
FNC 130
D
SIN
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
Explanation of function and operation
1. 32-bit operation (DSIN and DSINP)
A value of angle (binary floating point) specified in [
to [
+1,
D
D
Command
input
FNC130
DSIN
S
S
D
D
Program example
X001
FNC 12
MOVP
X002
FNC 12
MOVP
M8000
FNC 49
RUN
monitor
FNC123
DEDIV
FNC122
DEMUL
FNC130
520
Mnemonic
16-bit Instruction
P
Device number storing an angle (in radians) in binary floating point
Device number storing the sine value in binary floating point
Digit Specification
].
S
D
+1
S
+1
D
K 45
D 0
K 90
D 0
D 0
D 4
FLTP
K31415926 K1800000000
D 4
D 20
S
D
D 30
D100
DSIN
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
S
+1,
S
] is converted into the sine value, and transferred
] RAD → [
[
S
+1,
S
Binary floating point
Binary floating point
Value in radians (Value in degrees × π /180)
Binary floating point
Sine value
Binary floating point
(K45) → (D 0)
An angle is selected by the inputs
X001 and X002.
(K90) → (D 0)
(D 0) → (D5, D4) Binary floating point
value
( π /180) → (D21, D20)
D 20
Binary floating point
(D5, D4) Degrees × ( π /180) → (D31, D30) Radians
D 30
Binary floating point
(D31, D30) RAD → (D101, D100) SIN
Binary floating point
18 Floating Point – FNC110 to FNC139
18.18 FNC130 – SIN / Floating Point Sine
Mnemonic
Operation Condition
DSIN
9 steps
DSINP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
D
+1,
D
] SIN
Continuous
Operation
Pulse (Single)
Operation
Data Type
Real number (binary)
Others
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents