EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-114
API
Applicable model
20PM
132
D
D
TAN
P
P
Tangent of a binary floating-point value
Bit device Word device
X Y M S F H KnX KnY KnM KnS T C D V Z
S
D
Note: 0
o
Degree 360
0
Please refer to specifications for more information about device
ranges.
F represents a floating-point value. There is a decimal point in a
floating-point value.
Only the 32-bit instructions DTAN and DTANP are valid.
16-bit instruction
32-bit instruction (6 steps)
DTAN
Continuity
instruction
DTANP
Pulse
instruction
Flags
Ox O100
M1808 M1968 Zero flag
M1760 M1920 Radian/Degree flag
Please refer to the additional remark below.
Explanation
Whether the source value in S
is a radian or a degree depends on the state of
a radian/degree flag.
S: Source value; D: Tangent value
If a radian/degree flag is OFF, the source value in S is a radian.
Radian=Degree×π /180.
If a radian/degree flag is ON, the source value in S is a degree.
(0
o
Degree 360
0
)
If an operation result is 0, a zero flag will be ON.
The tangent of the source value in S is stored in D.
The relation between radians and tangent values is shown below.
R
S
-2
3
2
-2 2
3
2
2
2
-
1
-1
0
-
S:
Radian
R: Tangent value
Example 1
A radian/degree flag is reset to OFF. The binary floating-point value in (D1, D0)
is a radian. When X0 is ON, the tangent of the binary floating-point value in
(D1, D0) is stored in (D11, D10).
Radian/Degree flag
M100
2
RST
X0
DTAN
D0 D10
Tangent value
Binary floating-point value
Radian Degree 180)(
X
/
Binary floating-point value
D 1 D 0
S
D
D 11 D 10

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals