Exponentiation - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

27.6

Exponentiation

EXPT(_E)
RnPCPU
RnCPU RnENCPU
(Process)
These functions output the exponentiation of an input value.
Ladder, FBD/LD
[Without EN/ENO]
s1
d
s2
Setting data
■Description, type, data type
Argument
EN
s1 (IN1)
s2 (IN2)
ENO
d
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).
(s2)
(s1)
4.0
INT
REAL
■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.
Execution condition
EN
TRUE (executed)
FALSE (not executed)
*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
Error code
Description
(SD0)
The value input to (s1) or (s2) is -0, a subnormal number, NaN (not a number), or .
3402H
27 ARITHMETIC OPERATION FUNCTIONS
1916
27.6 Exponentiation
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
[With EN/ENO]
EN
s1
s2
Description
Execution condition (TRUE: Executed, FALSE: Not executed)
Base
Exponent (power)
Output status (TRUE: Normal, FALSE: Abnormal)
Output
(d)
2
16.0
REAL
Operation result
ENO
TRUE
FALSE
Structured text
[Without EN/ENO]
d:=EXPT(s1,s2);
[With EN/ENO]
d:=EXPT_E(EN,ENO,s1,s2);
ENO
d
*1
Type
Data type
Input variable
BOOL
Input variable
ANY_REAL
Input variable
ANY_NUM
Output variable
BOOL
Output variable
ANY_REAL
(d)
Operation result output value
Undefined value

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents