Arctangent: Atan - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

Arctangent: ATAN

Format
ATAN(S)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
device
(S)
■Description, data type of result
Setting data
(S)
Processing details
-1
• TAN
(arctangent) operation is performed on the TAN value data specified with (S) to find an angle.
• 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 an indirectly specified device and its device No. is outside the range.
Program example
■Program which performs the TAN
#0F
#0F = ATAN(D0F)
#3
#2
#0F
4 OPERATION CONTROL PROGRAMS
150
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
TAN value data on which TAN
-1
#1
#0
45.0
Usable steps
F/FS
Constant
16-bit
32-bit
64-bit
integer
integer
floating
type
type
point
(K/H)
(K/H, L)
type (K)
(arctangent) operation will be performed
(arctangent) operation of D0F and substitutes the result to
D3
D0F
G
Calculation
Bit
expression
conditional
expression
Data type of result
Floating-point type
D2
D1
D0
1.0
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents