Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-284
POW(P)
Operation Error
(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.
The values specified by or are out of the ranges shown below. (Error code: 4140)
0, 2
-126
| Specified value (Storage value) | < 2
128
The value of or is 0. (Error code: 4140)
The values in the operation result is within the range shown below. (Error code: 4141)
2
126
| Value resulted from operation |
Program Example
(1) The following program raises the 32-bit floating-point data type real number data specified
by D0 and D1 to the data specified by (D10 and D11)th power, when X10 is turned on. Then
the program stores the operation result into D20 and D21.
[Ladder Mode] [List Mode]
[Operation]
S1
S2
S1
S2
Step
Instruction
Device
Exponentiation
operation
D21 D20D1 D0
0.22 0.163
D11 D10
1.2