Arcsine: Asin - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Arcsine: ASIN

Format
ASIN(S)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
device
(S)
■Description, data type of result
Setting data
(S)
Processing details
-1
• SIN
(arcsine) operation is performed on the SIN value data specified with (S) to find an angle.
• The SIN value specified with (S) must be within the range -1.0 to 1.0.
• The operation result is in an angle (degree) unit.
• If (S) is an integer type, it is converted into a floating-point type before operation is performed.
Operation error
An operation error will occur if:
• (S) is outside the range -1.0 to 1.0.
• (S) is an indirectly specified device and its device number is outside the range.
Program example
■Program which performs the SIN
#0F = ASIN(D0)
#3
#2
#0F
4 OPERATION CONTROL PROGRAMS
148
4.7 Standard Functions
Number of basic steps
4
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
Description
-1
SIN value data on which SIN
(arcsine) operation will be performed
-1
#1
#0
90.0
Usable steps
F/FS
Constant
16-bit
32-bit
integer
integer
type
type
(K/H)
(K/H, L)
(arcsine) operation of D0 and substitutes the result to #0F
D0
G
Calculation
Bit
expression
conditional
64-bit
expression
floating
point
type (K)
Data type of result
Floating-point type
1
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents