Exponentiation - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Exponentiation

**
High
Basic
Process
Redundant Universal
performance
Structured ladder/FBD
Not supported
The following operator(s) can go in the dotted squares.
**
■Argument
Input/output
Name
argument
Input argument
s1
s2
Output argument
d
Processing details
■Operation processing
For details of the operation processing, refer to the following.
Page 136 Exponentiation
Operation error
These functions consist of the following common instructions depending on the data type of (s1) and (s2).
Data type of (s1)
Single-precision real type
Double-precision real type
• For details of an error which occurs when the operator is executed, refer to the following.
 MELSEC-Q/L Structured Programming Manual (Common Instructions)
Program example
■**
The program which performs exponentiation and outputs the operation result from (d) in the same data type as that of (s1)
and (s2).
[ST]
g_real2:= (g_real1)**(g_int1);
LCPU
ST
d:=s1
s2;
**
Description
Input
Input
Output
Data type of (s2)
Word (signed) type
Double word (signed) type
Single-precision real type
Double-precision real type
Word (signed) type
Double word (signed) type
Single-precision real type
Double-precision real type
Data type
ANY_REAL
ANY_NUM
ANY_REAL
Common instruction used
LOG, FLT
LOG, DFLT
LOG
LOGD, DFLTD
LOGD
LOGD, FLTD
LOGD, DFLTD
LOGD
6 OPERATOR
211
6.1 Arithmetic Operations
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents