M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
Functions
POW
Raises the 32-bit floating-point real number designated by (S1) to the power of the 32-bit floating-point real number desig-
nated by (S2), and stores the operation result at the device designated by (D).
S2+1
S2
S1+1
S1
Exponentiation recipient data
S1+1
S1
×
S1+1
The instruction raises
S1+1
32-bit floating-point real number
The following values can be designated and stored by S1 and S2.
-126
0, 2
≤ | Designated value (stored value) | < 2
When the operation results in "-0" or an underflow occurs, the operation result is processed as "0".
When setting input values from programming tools, rounding errors may occur.
For precautions when setting input values from programming tools, refer to "6.3.4 Single/Double-Precision Real Number
Data".
Operation errors
In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The designated device value is not within the following range. (Error code: 35)
-126
0, 2
≤ | Designated value (stored value) | < 2
- The designated device value is "-0", unnormalized number, nonnumeric, or ± ∞ . (Error code: 35)
- The operation result exceeds the following range. (When an overflow occurs) (Error code: 36)
| Operation result | < 2
Exponentiation data
D+1
D
× .........
×
S1
S1+1
to
S1
S2+1
32-bit floating-point real number
128
128
128
×
S1
S1+1
S1
th power.
S2
387
IB-1501667-B