Chapter 6 Applied Instructions 
6-341 
API    Instruction code  Operand 
Function 
1513    FEXP  P 
S, D 
An exponent of the floating-point 
number 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
Pulse instruction
16-bit instruction (5-6 steps)
32-bit instruction
Symbol: 
S
:
Source device  Double word 
D
:
Device in which the operation result is 
stored 
Double word 
Explanation:   
1.  Exponentiation involves two numbers, the base e which represents 2.71828, and the exponent 
in the device specified by S. 
2.  EXP[D+1, D]=[S+1, S]. 
3.  The number in the device specified by S can be a positive number or a negative number. The 
register specified by D should be a 32-bit register, and the number in the device specified by S 
should be a floating-point number. 
4.  The value in the register specified by D is e
S
. (e is 2.71828, and S represents the source data.) 
5.  If the absolute value of the conversion result is larger than the value which can be represented 
by the maximum floating-point number, the value in the register specified by D is 16#7F800000, 
and SM602 is ON. 
6.  If the operation result stored in D is 0, SM600 is ON. 
Example:   
1.  When X0.0 is ON, the value in (D1, D0) is converted into the floating-point number, and the 
conversion result is stored in (D11, D10). 
2.  When X0.1 is ON, the exponentiation with the value in (D11, D10) as the exponent is 
performed. The result is a floating-point number, and is stored in (D21, D20).