Pow (Power) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

22: L
/ P
OGARITHM
OWER

POW (Power)

POW(F)
*****
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When the operation result is not within the range between –3.402823 × 10
38
3.402823 × 10
, special internal relay M8003 (carry or borrow) is turned on, except when the result is 0. For details, see "Carry and Borrow in
Floating-Point Data Processing" on page 3-8.
When the operation result is between –1.175495 × 10
operation result is less than –3.402823 × 10
a value of minus or plus infinity.
When one of the following conditions occurs, a user program execution error occurs.
• The data designated by source device S1 is less than 0 and the data designated by source device S2 is not an integer.
• The data designated by source device S1 is 0 and the data designated by source device S2 is less than or equal to 0.
When the data designated by source device S1 or S2 does not comply with the normal floating-point format, a user program execution error occurs,
and the execution of the instruction is canceled. The value of D1 is left unchanged and the next instruction is executed.
When a user program execution error occurs, special internal relay M8004 and ERR LED on the FC6A Series MICROSmart are turned on. For details
about the user program execution errors, see "User Program Execution Errors" on page 3-10.
Since the POW instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
W (word)
I (integer)
D (double word)
L (long)
F (float)
X
Example: POW
POW(F)
SOTU
I1
22-4
I
NSTRUCTIONS
S1
S2
D1
*****
*****
Function
Binary data of base
Binary data of exponent
Destination to store results
–38
and 1.175495 × 10
38
or greater than 3.402823 × 10
Since floating point data is used, the source and destination devices use two consecutive data registers.
S1
S2
D1
D10
D20
D30
S1
4.0
D10·D11
FC6A S
MICROS
ERIES
MART
S2·S2+1
S1·S1+1
→ D1·D1+1
When input is on, data assigned by source device S1 is raised to the power S2·S2+1
assigned by source device S2 and the operation result is stored to the destination
assigned by device D1.
I
Q
38
and –1.175495 × 10
–38
, the destination device designated by D1 stores 0. When the
38
, causing an overflow, the destination device designated by D1 stores
When input I1 is on, the data of data registers D10 and D11 assigned by
source device S1 is raised to the power D20·D20+1 assigned by source device
S2 and the operation result is stored to data registers D30 and D31 assigned
by destination device D1.
→ 5.656854
1.25
4
S2
1.25
D20·D21
L
P
M
ADDER
ROGRAMMING
ANUAL
M
R
T
C
D
P
X
X
X
–38
or between 1.175495 × 10
D30·D31
FC9Y-B1726
Constant
Repeat
X
X
–38
to
D1
5.656854

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents