525
POW, POWP
1
2
3
4
4
6
7
8
7.12
Special function
instructions
7.12.1
7
POW, POWP
: Exponentiation recipient data or head number of the devices where the exponentiation recipient data are stored (real number)
: Exponentiation data or head number of the devices where the data are stored (real number)
: Head number of the devices where the operation result will be stored (real number)
*1:
Available only for real number
F
unct
i
on
(1) This instruction raises the 32-bit floating-point data type real number specified by to the number nth specified by
power, and then stores the operation result into the device specified by .
(2) The following shows the values to be specified by and stored into or .
0, 2
-126
| Set values (Storage values) | < 2
128
(3) If the value resulted from the operation is -0 or an underflow occurs, the result will be processed as 0.
Operat
i
on
E
rror
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
7.12.17 POW, POWP
Exponentiation operation on floating-point data
(Single precision)
7.12.17
POW, POWP
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
E
Other
Bit
Word
Bit
Word
––
––
*1
––
––
––
*1
––
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4140
The values specified by or is not within the following range:
0, 2
-126
|Specified value (storage value)| < 2
128
The value of or is -0.
––
––
––
––
4141
The operation result is within the following range (when an overflow
occurs):
2
128
| Operation result |
––
––
––
––
Bas
i
c
Hi
gh
performance
Process
Redundant
Universal
LCPU
Ver.
Command
Command
POW
POWP
S1
S2
D
S1
S2
D
POW
POWP
S1
S2
D
S1
S2
D
S1
S2
D
32
-
b
i
t
f
l
oat
i
ng
-
po
i
nt
data
type
rea
l
number
32
-
b
i
t
f
l
oat
i
ng
-
po
i
nt
data
type
rea
l
number
+
1
+
1
+
1
+
1
+
1
+
1
to
th
po
w
er
.
T
he
i
nstruct
i
on
ra
i
ses
E
xponent
i
at
i
on
rec
i
p
i
ent
data
E
xponent
i
at
i
on
data
+
1
+
1
+
1
D
D
S1
S2
S1
S2
S1
S1
S2
S1
S2
S1
S1
S1
S1
S1
S1
S1
S1
S2
S1
S2
S1
S2