User guide
Page 150
Chapter 4. Programming
ATN (Arctangent)
TAN (Tangent)
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional TAN Variable no. Data·Variable no. Optional
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
Optional Optional ATN Variable no. Data·Variable no. Optional
[Function] Stores the tangent (TAN) of the data in Operand 2 in the variable in Operand 1. Stores the tangent of the contents
in the variable in Operand 2 in the Operand 1 variable. If there is a post instruction (flag, output port), it turns
ON when the computation result is zero. (Be sure to input a real number variable 100~199 in Operand 1. This
is the same when placing a variable no. in Operand 2. The data in Operand 2 must be expressed in radians
instead of as an angle (degrees). A maximum of 7 digits can be input for the floating point.)
[Example] TAN 100 0.785398
TAN 0.785398 (radian) is 1, and after performing the command, variable 100 becomes 1.
TAN 100 *101
When the content of variable*101 in Operand 2 is 0.785398 (radian), then TAN 0.785398 (radian)
becomes 1, and after performing the command, variable 100 becomes 1.
[Function] Stores the arc tangent (ATN) of the data in Operand 2 in the variable in Operand 1. Stores the arc tangent of the
contents in the variable in Operand 2 in the Operand 1 variable. If there is a post instruction (flag, output port),
it turns ON when the computation result is zero. (Be sure to input a real number variable 100~199 in Operand
1. This is the same when placing a variable no. in Operand 2. The data in Operand 2 must be expressed in
radians instead of as an angle (degrees). A maximum of 7 digits can be input for the floating point.)
[Example] ATN 100 1
ATN 1 is 0.785398, and after performing the command, variable 100 becomes 0.785398.
ATN 100 *101
When the content of variable*101 in Operand 2 is 1, then ATN1 becomes 0.785398, and after perform-
ing the command, variable 100 becomes 0.785398.