Specifications

10. Additional Special Devices and Instructions
10-4
10.2. New Application Instructions
The version V5.5 or above of ES / EX / SS series has the following new
commands.
D
124 EXP
S D
Convert decimal of binary
number system to perform
exponent operation
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
Ϩ
D
Ϩ
S
: the source device for operation
D
: operation result device
Take e =2.71828 as the base and use
S
as exponent to perform the
EXP operation.
exp[
S
+1,
S
]=[
D
+1,
D
]
The positive and negative values of the content of
S
are all valid. Be
sure to use 32-bit data format to assign the
D
register. Because
using the floating point format to perform the EXP operation is necessary,
S
has to be converted to the floating point value.
The content value of D operand= e S ; e=2.71828, S is the assigned
source data.
(Zero flag, Carry flag, Overflow flag are valid and Error flag M1067,
M1068 read D1067, D1068)
Program example:
M0
RST
M1081
M1
DEXP D10 D20
M2
DEBCD D20 D30
DFLT D0 D10
Ϩʳ When M0 is ON, the data of (D0, D1) is converted to decimal of binary
number system and the result is stored in the (D10, D11) register.
Ϩʳ When M1 is ON, use (D10, D11) as exponent to perform the EXP
operation. The result is decimal of binary number system and will be
stored in the (D20, D21) register.
Ϩʳ When M2 is ON, the data of (D20, D21) is converted from binary to
decimal and the result is stored in (D30, D31) register. (At that time, the
result=D30 x 10
D31
)
D
125 LN
S D
Convert decimal of binary
number system to perform
natural logarithm operation
Bit device Word device
Device
Operand
X Y M S K H KnX KnY KnM KnS T C D E F
S
Ϩ
D
Ϩ
S
: the source device for operation
D
: operation result device
Use
S
as operand to perform the LN operation.
ln[
S
+1,
S
]=[
D
+1,
D
]