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-112
API
Applicable model
20PM
131
D
D
COS
P
P
Cosine of a binary floating-point number
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 DCOS and DCOSP are valid.
16-bit instruction
32-bit instruction (6 steps)
DCOS
Continuity
instruction
DCOSP
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: Cosine 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 cosine of the source value in S is stored in D.
The relation between radians and cosine values is shown below.
R
S
-2
3
2
-2 2
3
2
2
2
-
1
-1
0
-
S:
Radian
R: Cosine value
Radian/Degree flag: If a radian/degree flag is OFF, the source value in S is a
radian. If a radian/degree flag is ON, the source value in S is a degree in the
range of 0° to 360°.
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 cosine of the binary floating-point value in (D1,
D0) is stored in (D11, D10).
Radian/Degree flag
M100
2
RST
X0
DCOS
D0 D10
Cosine 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