Arctangent : Atan - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.6.6 Arctangent : ATAN

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
ATAN(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
TAN value data on which TAN
(S)
-1
(1) TAN
(arctangent) operation is performed on the TAN value data specified with
(S) to find an angle.
(2) The operation result is in an angle (degree) unit.
(3) If (S) is an integer type, it is converted into a floating-point type before operation is
performed.
(1) An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which performs the TAN
the result to #0F
#0F = ATAN(D0F)
#3
#2
#0F
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
-1
operation will be performed
-1
(arctangent) operation of D0F and substitutes
#1
#0
45.0
5 - 32
F/FS
Number of basic steps
64-bit
Calculation
floating
expression
point
type (K)
Data type of result
(arctangent)
Floating-point type
D3
D2
D0F
G
2
Bit
Comparison
conditional
conditional
expression
expression
: Usable
D1
D0
1.0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents