High−level Instructions
3 − 710
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
F323 PWR, DT 0, DT 2, % DT4
R0
When the constant K is specified in S1 and S2, the operations are the same as when a integer device is
specified.
Program example
The “f625.0” is stored to DT20 and DT21 when the R0 turns on.
F323 PWR, K 5, K 4, DT20
R0
The “f30.51758” is stored to DT30 and DT31 when the R0 turns on.
F323 PWR, f3.125, K 3, DT30
R0
Precaution during programming
For FP0, this instruction F323 (PWR) cannot be programmed in the interrupt program.
Flag conditions
・Error flag (R9007): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− If data other than real number data is specified in “S1+1 and S1” and “S2+1
and S2.”
− The power of negative number data is not an integer
− If result of processing is outside integer range when integer device is
specified in D+1 and D.
・= flag (R900B): Turns on when result of processing is recognized as “0.”
・Carry flag (R9009): Turns on for an instant when the result is overflowed.