Chapter 6 Instruction Details
XBC E-Type Main Unit
6-270
Ver. 1
6.35.13 EXPT, EXPTP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
EXPT(P)
S
O O O
-
O O O
-
-
-
-
O O O O O
2~4
O
-
-
D
O O O
-
O
-
-
-
-
-
-
-
O O O O
Operand
Description
Data Size
S1
The base number for operation
LREAL
S2
The exponential number for operation
D
Device number to save operation result in
LREAL
1) EXPT (Exponential operation)
(1) Performs Exponential operation of data in specified area S1 and S2 to save in D. Data type of S and D
is of double real.
(2) When S1 is 1.5 and S2 is 3, operation result is 3.375 (1.5
3
).
2) Program Example
P00001
EXPT M0000 M0004 M0008
Performs exponential operation with data in M0000, M0001, M0004 and M0005 and saves them in M0008,
M0009.
EXPT
EXPTP
S
D
EXPTP
EXPT
S
D
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...