506
TAN, TANP
[Operations involved when X20 to X2F designate a value of 60]
: Angle data of which the TAN (tangent) value is obtained or head number of the devices where the angle data is stored (real number)
: Head number of the devices where the operation result will be stored (real number)
*1: Applicable for the Universal model QCPU, LCPU.
Function
(1) Returns the tangent (TAN) value of the angle data designated by , and stores operation result in device designated by
.
(2) Angles designated at are set in radian units (degrees / 180).
For conversion between degrees and radian values, see the RAD and DEG instructions.
(3) When angles designated by are /2 radians, or (3/2) radians, an operation error will be generated in the calculation
of the radian value, so care must be taken to avoid such errors.
7.12.5 TAN, TANP TAN operation on floating-p oint data (Single precision)
7.12.5
TAN, TANP
• Basic model QCPU: The serial number (first five digits) is
"04122" or later.
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
E
Other
Bit Word Bit Word
–– ––
*1
––
–– ––
*1
–– ––
64-bit floating-point
real number
X2F
BCD value
0
D30
060
X20
Conversion
to BIN
BIN
b15 b0
BIN value
Conversion to radian
RADD
SIN operation
COSD
60
Conversion to
floating-point
FLTD
D21
60
D20D23 D22
64-bit floating-point
real number
D11
1.047198
D10D13 D12
64-bit floating-point
real number
D1
0.500000
D0D3 D2
1
2
3
4
Basic
Process
High
performance
Redundant
Universal
LCPU
Ver.
Command
Command
TANP
TAN
TANP
TAN S D
S D
S
D
S
D
S
D
+1
+1
S
D
S
D
32-bit floating-point
real number
TAN (
)
32-bit floating-point
real number
S
S