626
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
Exponentiation operation on floating-point data (single precision)
POW(P)
*1 Available only for real number
• This instruction raises the 32-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
-126
| Set values (Storage values) | < 2
128
• 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.
Command
Command
POW
POWP
S1
S2
D
S1
S2
D
POW
POWP
32-bit floating-point
data type real number
32-bit floating-point
data type real number
+1
+1
+1
+1 +1
+1to th power.The instruction raises
Exponentiation recipient data
Exponentiation data
+1 +1
+1
D
D
S1
S2
S1
S2
S1
S1
S2
S1
S2
S1
S1
S1
S1
S1S1
S1