5
Categories and Use of Basic Application Instructions
DVP-PM Application Manual
5-117
API Mnemonic
Operands
Function
134
D ACOS P
Arc Cosine
Controllers
20PM
10PM
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S F H
KnX KnY KnM KnS T
C
D
V
Z
S
*
*
D
*
DACOS, DACOSP: 6 steps
Operands:
S
: Source device (binary floating value)
D
: Operation result
Explanations:
1. ACOS value = COS
-1
. ACOS instruction performs arc cosine operation on
S
and stores the result in
D
.
2. F refers to floating point input. Be sure to add a decimal point when using it.
3. Only 32-bit instructions DACOS and DACOSP are applicable.
4. See the figure below for the relation between the input
S
and the result:
R
S
2
0
1,0
-1,0
S: Entered data (cosine value)
R: ACOS value (radian)
5. The decimal value of the COS value designated by
S
should be within -1.0 ~ +1.0. If the value exceeds the
range, M1067 and M1068 will be ON and instruction will be disabled.
6. If operation result in
D
is 0, zero flag will be ON.
7. Flags:
OX
O100
Zero flag
M1808
M1968
Operation error
M1793
M1953
Program Example:
When X0 = ON, DACOS instruction performs arc cosine operation on the binary floating value in (D1, D0) and stores
the ACOS value in (D11, D10) in binary floating format.
X0
DACOS
D0
D10
D 1
D 0
D 10
D 11
Binary floating point
ACOS value
binary floating point
Points to note:
For floating point operations, see “5.3 Numeric Values for Data Processing”.
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...