Calculating The Arc Sine Of Single-Precision Real Number - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Calculating the arc sine of single-precision real number

ASIN(P)/DASIN(P)
These instructions calculate the angle from the sine of the angle specified by (s), and store the operation result in the word
device specified by (d).
The ASIN(P) instructions can also be used as DASIN(P).
Ladder diagram
(s)
(d)
*1 The ASIN instruction is not supported by the ST language. Use ASIN of the standard function.
Page 774 ASIN(_E)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
A sine value used in SIN
device number storing the sine value
(d)
Head device number for storing the operation result
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions calculate the angle from the sine of the angle specified by (s), and store the operation result in the
device specified by (d).
(s)+1
(s)
-1
SIN
(
)
Single-precision real number
• The sine value specified by (s) can be set ranging from -1.0 to 1.0.
• The angle (operation result) stored in (d) is expressed in radians (from (-/2) to (/2)).
• The table below shows the related devices.
Device
Name
SM700
Carry
SM8020
Zero
SM8021
Borrow
SM8022
Carry
-1
(arc sine) operation or head
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
(d)+1
(d)
Single-precision real number
Description
Condition
The absolute value of the operation result
The operation result is true "0".
(The mantissa part is "0").
The absolute value of the operation result < 2
The absolute value of the operation result
*1
Structured text
ENO:=ASINP(EN,s,d);
Range
Data type
-1.0 to +1.0
Single-precision real number
-/2 to +/2
Single-precision real number
Double word Indirect
specification
Z
LC
LZ
Operation
128
2
The value of (d) is the maximum value (2
numbers and the carry flag SM700 turns on.
The zero flag SM8020 turns on.
-126
The value of (d) is the minimum value (2
numbers and the borrow flag SM8021 turns on.
128
2
The value of (d) is the maximum value (2
numbers and the carry flag SM8022 turns on.
Data type (label)
Single-precision real number
Single-precision real number
Constant
Others
K, H
E
$
128
) of 32-bit real
-126
) of 32-bit real
128
) of 32-bit real
7 APPLICATION INSTRUCTION
7.7 Real Number Instruction
7
445

Advertisement

Table of Contents
loading

Table of Contents