Table of Contents

Advertisement

3. Instructions

PWRD

Instruction
DOUBLE EXPONENTIAL
POWER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
B
First base word
E
First exponent word
D
First destination word
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
B, E
OK
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
544
Mnemonic
Variations
PWRD
@PWRD
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
addresses
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
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.
P_EQ
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
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.
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.
P_N
• ON if the result is negative.
• OFF in all other cases.
Function
code
Raises a double-precision (64-bit) floating-point
860
number to the power of another double-precision
(64-bit) floating-point number.
PWRD
PWRD(860)
B
B: First base word
E
E: First exponent word
D
D: First destination word
Subroutines
Interrupt tasks
OK
Data type
LREAL
LREAL
LREAL
Registers
Con-
stants
*DM
DR
IR
*EM
OK
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
4
4
4
Flags
Pulse
TR
bits
bits
Indirect
TK
CF
using IR
OK
---
---
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents