Chapter 7 Second Development Platform VP3000
346
API Instruction code Operand Function
124 D EXP P S, D
Binary floating-point number
exponentiation
Type
Operand
Bit devices Word devices
16-bit instruction
- - - -
32-bit instruction (9 steps)
DEXP
Continuous
execution
type
DEXPP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
Caution for using operand
See the specification of each model for the scope of device’s usage.
Description
S: device of operation source
D: device of operation result
e = 2.71828 is as a base number, and S is the exponent to do EXP operation.
[ D + 1, D ] = e
[ S + 1, S ]
Both positive and negative values are valid for S. The 32-bit format must be used to designate
register D. The operation is executed in floating-point numbers, so the value in S needs to be
converted into floating-point number before exponent operation.
The content of operand D = e
S
, e =2.71828, and S is the designated source data.
Example
When M0 = ON, convert (D0, D1) to be binary floating-point numbers and store in the register
(D11, D10).
When M1 = ON, (D11, D10) are the exponent to do EXP operation. Their value is binary floating-
point numbers and store in the register (D21, D20).
M0
M1
DFLT D0 D10
DEXP D10 D20