AH500 Programming Manual 
6-78 
 
Example 2: 
Users can use the applied instructions to perform the following calculation. 
  The binary integer in D10 is converted into the single-precision floating-point number, 
and the conversion result is stored in (D101, D100). 
  The binary-coded decimal value in X0.0~X0.15 is converted into the binary value, and 
the conversion result is stored in D200. 
  The binary integer in D200 is converted into the single-precision floating-point number, 
and the conversion result is stored in (D203, D202). 
  The constant 615 is divided by the constant 10, and the quotient which is the 
single-precision floating-point number is stored in (D301, D300). 
  The single-precision floating-point number in (D101, D100) is divided by the 
single-precision floating-point number in (D203, D202), and the quotient which is the 
single-precision floating-point number is stored in (D401, D400). 
  The single-precision floating-point number in (D401, D400) is multiplied by the 
single-precision floating-point number in (D301, D300), and the product which is the 
single-precision floating-point number is stored in (D21, D20). 
  The single-precision floating-point number in (D21, D20) is converted into the decimal 
floating-point number, and the conversion result is stored in (D31, D30). 
  The single-precision floating-point number in (D21, D20) is converted into the binary 
integer, and the conversion result is stored in (D41, D40).
 
(D10)   (X0.0~X0.15)
K61.5
1
2
5
4
6
7
8
3
16-bit binary
 number
four-digit 
binary-coded 
decimal number
(D21,D20) 
(D200) BIN(D101,D100)
Single-precision
floating-point number
(D301,D300)
(D31,D30)
Decimal floating-point number
(D41,D40)
32-bit integer
(D203,D202)
(D401,D400)
Single-precision
floating-point number
Single-precision
floating-point number
Single-precision
floating-point number
Single-precision
floating-point number