Delta AH500 Programming Manual page 522

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1521
BTAN
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The source value specified by S is a degree, and the instruction is used to get the tangent of
the source value specified by S. After the tangent value is gotten, the sign is stored in D, the
integer part is stored in D+1, and the fractional part is stored in D+2.
2.
The range of degrees: 0°≦Degree<360°
3.
The operation result is rounded off to the fifth decimal place.
4.
If the conversion result is 0, SM600 is ON.
Example:
The instruction is used to get the tangent of the value in D0. After the tangent value is gotten, the
sign is stored in D10, the integer part is stored in D11, and the fractional part is stored in D12.
Additional remark:
1.
If the value in S is not a binary-coded decimal value (The binary-coded decimal value is
represented by the hexadecimal number, but one of digits is not within the range between 0
6 - 3 5 4
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction
AH500
S : Source value
D : Result
BTAN
D0
0 0
6
0
Binary -coded
decimal value
Tangent of the binary-coded
decimal number
L
SM SR
E
PR
AH500
Word
Word
D10
0 0
0
0
Binary -coded
decimal value
D11
0 0
0
1
Binary -coded
decimal value
D12
7 3
2
0
Binary -coded
decimal value
Function
K
16# "$"
DF
-

Advertisement

Table of Contents
loading

Table of Contents