AH500 Programming Manual 
6-324 
API    Instruction code  Operand 
Function 
1501    FCOS  P 
S, D 
Cosine of the floating-
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#
“$”  DF 
16-bit instruction (5-6 steps) 
AH500  AH500  - 
Symbol: 
S
:
Source value  Double word 
D
:
Cosine value  Double word 
Explanation:   
1.  Whether the source value specified by S is a radian or a degree depends on the state of 
SM695. 
2.  If SM695 is OFF, the source value specified by S is a radian. Radian=Degree×π/180. 
3.  If SM695 is ON, the source value specified by S is a degree.   
Degree=Radian×180/π. (0
o
≦Degree≦360
0
) 
4.  If the conversion result is 0, SM600 is ON. 
5.  The cosine of the source value specified by S is stored in the register specified by D. 
6.  The relation between radians and cosine values are shown below. 
 
Example:   
When X0.0 is ON, the binary-coded decimal value in X1.15~X1.0 is converted into the binary value, 
and the conversion result is stored in D0. The binary value in D0 is converted into the floating-point 
number, and the conversion result is stored in (D11, D10). The floating-point number in (D11, D10) is 
converted into the radian, and the conversion result is stored in (D21, D20). The cosine of the radian 
in (D21, D20) is stored in (D31, D30), and the cosine value is the floating-point number.