EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Exponentiation

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1916
27 ARITHMETIC OPERATION FUNCTIONS
27.6 Exponentiation
27.6 Exponentiation
EXPT(_E)
These functions output the exponentiation of an input value.
Setting data
Description, type, data type
Processing details
Operation processing
These functions exponentiate the REAL or LREAL data type value input to (s1) with the exponent (INT, DINT, REAL, or
LREAL data type) input to (s2), and output the operation result from (d).
Operation result
1. Function without EN/ENO
The operation processing is performed. The operation result is output from (d).
2. Function with EN/ENO
The execution conditions and operation results will be as follows.
*1 If the value FALSE is output from ENO, the output data from (d) will be undefined. Create a program so that the undefined value will not
be used in operations.
Operation error
Ladder, FBD/LD Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=EXPT(s1,s2);
[With EN/ENO]
d:=EXPT_E(EN,ENO,s1,s2);
Argument Description Type Data type
EN Execution condition (TRUE: Executed, FALSE: Not executed) Input variable BOOL
s1 (IN1) Base Input variable ANY_REAL
s2 (IN2) Exponent (power) Input variable ANY_NUM
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable ANY_REAL
Execution condition Operation result
EN ENO (d)
TRUE (executed) TRUE Operation result output value
FALSE (not executed) FALSE
*1
Undefined value
Error code
(SD0)
Description
3402H The value input to (s1) or (s2) is -0, a subnormal number, NaN (not a number), or .
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
s1 d
s2
EN ENO
ds1
s2
(s2)
(s1)
(d)
16.0
2
4.0
REAL
INT
REAL

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals