Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 544

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Floating-point Math Instructions
3-14-20 EXPONENTIAL POWER: PWR(840)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Description
Raises a 32-bit floating-point number to the power of another 32-bit floating-
point number.
PWR(840)
B
E
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
PWR(840) raises the 32-bit floating-point number in B+1 and B to the power
of the 32-bit floating-point number in E+1 and E. In other words, PWR(840)
Y
calculates X
(X = B+1 and B; Y = E+1 and E).
E+1
E
B+1
B
R+1
Base data
B: First base word
E: First exponent word
R: First result word
Step program areas
Subroutines
OK
B
CIO 0 to CIO 6142
W0 to W510
H0 to H510
A0 to A958
T0000 to T4094
C0000 to C4094
D0 to D32766
@ D0 to @ D32767
*D0 to *D32767
#00000000 to #FFFFFFFF (binary)
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Exponent data
R
Section 3-14
PWR(840)
@PWR(840)
Not supported.
Interrupt tasks
OK
E
R
A448 to A958
---
511

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents