Expt_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.3.6
EXPT(_E)
Outline
This function obtains raised result, and outputs it.
1. Format
Function name
EXPT

EXPT_E

*1.
Output variable
2. Set data
Variable
EN
Input
In1
variable
In2
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function raises float (single precision) data stored in a device specified in
stored in a device specified in
s1
Float (single
precision) data
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
146
FX
3U(C)
Structured ladder
EXPT
Label 1
In1
D10
In2
X000
EXPT_E
EN
Label 1
In1
D10
In2
Execution condition
Data to be raised, or word device which stores such data
(
)
s1
Power data, or word device which stores such data
(
)
s2
Execution status
Word device which will store the operation result
(
)
d
), and outputs the operation result to a device specified in
s2
2
4.0
s2
Word
[signed] data
FX
3G
FX
2N(C)
FX
Expression in each language
EXPT(In1,In2);
Example:
*1
Label 2
Label 2:=
EXPT(Label 1,D10);
EXPT_E(EN,In1,In2,Output
label);
ENO
Example:
EXPT_E(X000,Label 1,D10,
*1
Label 2
Label 2);
Description
16.0
d
Float (single
precision) data
5.3 Standard Arithmetic Functions
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
FLOAT (Single Precision)
ANY_NUM
Bit
FLOAT (Single Precision)
(to the power of the value
s1
FX
0N
FX
0(S)
Data type
.
d

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents