278
D A T A N P
S
D
1
2
M
3
○○○
FNC
135
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
S
D
DATAN D0 D10
X0
S
D
○
Calculate Arc Tangent
Operand
Devices
- 1
TAN
1.732051
=
1.047198
The calculated result at the (D11, D10) is by the value of radians and the range is between - π / 2 and π / 2.
(D1, D0) BIN floating number
(D11, D10) BIN floating number
S
For to convert the angle unit between the radians and degrees, please refer to the DEG and RAD instructions.
Degree = Radian ×180 / π
This instruction is a 32-bit instruction. Therefore, be sure to input DATAN or DATANP in the program.
D
The source operand must assign to a BIN oating point number for the calculation, and the calculated result
is by the BIN oating point format, too.
The format for storing a oating point number will occupy two Registers in the PLC system. Please refer to the
section 2-13 “Numerical System” for the reference of the oating point number.
S : the source device for input the value of tangent
D : the device to store the calculated result (unit: radian)
-1
This instruction performs the mathematical Arctan (inverse tangent or tan ) operation by the designated BIN
oating point tangent value, and the result of radians is stored in the designated device.
When X0 = “ON”, the instruction is activated, it uses the BIN oating point tangent value at (D1, D0) to calculate
the Arctangent value, and the result of radians will be stored at the specied destination devices (D11, D10).