High
−
level Instructions
3
−
705
Outline
This instruction calculates the exponent of a floating point real number
EXP( ).
For the FP0R/FP
Σ
/FP
−
X/FP0/FP
−
e, the P type high
−
level instruction
“P321 (PEXP)” is not available.
Program example
Ladder Diagram
Boolean
Ladder Diagram
Address
Instruction
S
Trigger
D
F321 EXP, DT10, DT20
10
R0
10
11
ST
R
0
F321
(EXP)
DT
10
DT
20
S
Angle data (2 words) or lower 16-bit area of 32-bit data where angle data is
stored
D
Lower 16-bit area of 32-bit data where calculated result is stored
Operands
Operand
Relay
Timer/Counter
Register
Index
register
Constant
Index
modifier
Integer
device
Operand
WX WY WR WL
SV
EV
DT LD
FL
I
K
H
f
modifier device
S
A
A
A
A
A
A
A
A
A
A
A
A
A
A
*
A
D
N/A
A
A
A
A
A
A
A
A
A
N/A N/A N/A
A
A
*
Index modification of a real number is not possible.
Description
The exponent EXP(S+1 and S) is calculated from the real number data specified in S+1 and S, and the result
is stored in D+1 and D.
EXP ([S+1, S])
→
[D+1, D]
The calculation is performed with the exponent base (e) equal to 2.718282.
Specifying the integer device with [S], the integer data is internally converted to real numbers before
operations continue.
F321 EXP, % DT 0, DT 4
R0
Specifying the integer device with [D], the real numbers are automatically converted into integer data.
F321 EXP, DT 0, % DT 4
R0
F321
P321
(PEXP)
(EXP)
Floating point data exponent
A: Available
N/A: Not Available
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...