3. Instructions
544
CS/CJ/NSJ Series Instructions Reference Manual (W474)
PWRD
Applicable Program Areas
Operands
îš„ Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
DOUBLE EXPONENTIAL
POWER
PWRD @PWRD 860
Raises a double-precision (64-bit) floating-point
number to the power of another double-precision
(64-bit) floating-point number.
Symbol
PWRD
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
B First base word LREAL 4
E First exponent word LREAL 4
D First destination word LREAL 4
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
B, E
OK OK OK OK OK OK OK OK OK OK --- --- --- OK --- --- --- ---
D
Name Label Operation
Error Flag P_ER • ON if the base data (B to B+3) or exponent data (E to E+3) is not recognized as floating-point data.
• ON if the base data (B to B+3) or exponent data (E to E+3) is not a number (NaN).
• ON if the base data (B to B+3) is 0 and the exponent data (E to E+3) is less than 0. (Division by 0)
• ON if the base data (B to B+3) is negative and the exponent data (E to E+3) is non-integer. (Root of a
negative number)
• OFF in all other cases.
Equals Flag P_EQ • ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
Overflow Flag P_OF • ON if the absolute value of the result is too large to be expressed as a double-precision floating-point
value.
• OFF in all other cases.
Underflow Flag P_UF • ON if the absolute value of the result is too small to be expressed as a double-precision floating-point
value.
• OFF in all other cases.
Negative Flag P_N • ON if the result is negative.
• OFF in all other cases.
PWRD(860)
B
E
D
D: First destination word
B: First base word
E: First exponent word