Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 530

Table of Contents

Advertisement

3. Instructions
PWR
Instruction
EXPONENTIAL POWER
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
B
First base word
E
First exponent word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
B, E
OK
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
492
Mnemonic
Variations
PWR
@PWR
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
ER
• ON if the base (B+1 and B) or exponent (E+1 and E) is not recognized as floating-point data.
• ON if the base (B+1 and B) or exponent (E+1 and E) is not a number (NaN).
• ON if the base (B+1 and B) is 0 and the exponent (E+1 and E) is less than 0. (Division by 0)
• ON if the base (B+1 and B) is negative and the exponent (E+1 and E) is non-integer. (Root of a neg-
ative number)
• OFF in all other cases.
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
OF
• ON if the absolute value of the result is too large to be expressed as a 32-bit floating-point value.
• OFF in all other cases.
UF
• ON if the absolute value of the result is too small to be expressed as a 32-bit floating-point value.
• OFF in all other cases.
N
• ON if the result is negative.
• OFF in all other cases.
Function
code
Raises a 32-bit floating-point number to the power
840
of another 32-bit floating-point number.
PWR
PWR(840)
B
B: First base word
E
E: First exponent word
R
R: First result word
Subroutines
Interrupt tasks
OK
Data type
Registers
Con-
stants
*DM
DR
IR
*EM
OK
OK
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
REAL
2
REAL
2
REAL
2
Flags
Pulse
TR
bits
bits
Indirect
TK
CF
using IR
OK
---
---
---
---

Advertisement

Table of Contents
loading

Table of Contents