628
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
Exponentiation operation on floating-point data (double
precision)
POWD(P)
*1 Available only for real number
• This instruction raises the 64-bit floating-point data type real number specified by (S1) to the number nth specified by (S2)
power, and then stores the operation result into the device specified by (D).
• The following shows the values to be specified by and stored into (S1) or (S2).
0, 2
-1022
| Set values (Storage values) | < 2
1024
• If the value resulted from the operation is -0 or an underflow occurs, the result will be processed as 0.
• When an input value is set using a programming tool, a rounding error may occur. For precautions, refer to Page 89
Precautions.
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S1): Exponentiation recipient data or head number of the devices where the exponentiation recipient data are stored (real number)
(S2): Exponentiation data or head number of the devices where the data are stored (real number)
(D): Head number of the devices where the operation result will be stored (real number)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
E
Others
Bit Word Bit Word
(S1)
*1
(S2)
*1
(D)
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
POWD
POWDP
S1
S2
D
S1
S2
D
POWD
POWDP
Command
Command
(D)
(S2)+2 (S2)+1
(D)+3
(D)+2 (D)+1
(S1)+3 (S1)+2 (S1)+1
(S2)+3
(S1)
(S1)+3 (S1)+2 (S1)+1 (S1) (S1)+3 (S1)+2 (S1)+1 (S1)
(S2)
(S1)+3 (S1)+2 (S1)+1 (S1)
(S1)+3 (S1)+2 (S1)+1 (S1)
64-bit floating-point data type real number
is carried out.
(S2)+3 (S2)+2 (S2)+1
(S2)
raised to the power of
64-bit floating-point data type real number
Exponentiation recipient data
Exponentiation data