AH500 Programming Manual 
6-358 
API    Instruction code  Operand 
Function 
1523    BACOS  P 
S, D 
Arccosine of the binary-coded 
decimal number   
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
16-bit instruction (5 steps) 
AH500  AH500  - 
Symbol: 
S
:
Source value  Word 
D
:
Arccosine value  Word   
Explanation:   
1.  The source value specified by S is a binary-coded decimal value, and the instruction is used to 
get the arccosine of the source value specified by S. The operation result (the degree) is 
stored in D. 
2.  The value in S represents the sign, i.e. 0 represents the positive sign, and 1 represents the 
negative sign. The integer part is stored in S+1, and the fractional part is stored in S+2. 
3.  The operation result is rounded off to the nearest whole digit. 
4.  The operation result is a binary-coded decimal value (the degree) wiithin the range between 0° 
and 180°. 
Example:   
The value in D0 represents the sign, the integer part is stored in D1, and the fractional part is stored 
in D2. After the instruction BACOS is executed, the arccosine value is rounded off to the nearest 
whole digit, and the result is stored in D10. 
 
Binary-coded 
decimal value
B
inary-coded 
decimal value
Binary-coded 
decimal value
Binary-coded 
decimal value
0
0 0
0
0
0 0
0
8
6 0
6
D0
D1
D2
BACOS
 
0
0 0
3
D10
 
Additional remark: