High−level Instructions
3 − 701
Outline Triangle functions, This instruction calculates arctangent [TAN
−1
( )].
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P319 (PATAN)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S
Trigger
D
F319 ATAN, DT10, DT20
10
R0
10
11
ST R 0
F319 (AT AN)
DT 10
DT 20
S Angle data (2 words) or lower 16-bit area of 32-bit data where angle data is
stored
D Lower 16-bit area of 32-bit data where calculated result is stored
Operands
O
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S A A A A A A A A A A A A A A* A
D N/A A A A A A A A A A N/A N/A N/A A A
* Index modification of a real number is not possible.
Description
TAN
−1
(the arctangent) of the value specified in S+1 and S is calculated, and the result [an angle data (units
and radians)] is stored in D+1 and D.
TAN
−1
([S+1, S]) → [D+1, D]
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
F319 ATAN, % DT 0, DT 4
R0
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
F319 ATAN, DT 0, % DT 4
R0
When the constant K is specified in S, the operations are the same as when a integer device is specified.
F319
P319
(PATAN)
(ATAN)
Floating point data Arctangent operation