Mitsubishi Electric MELSEC-Q/L Programming Manual page 139

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

Advertisement

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 function is executed, refer to the following.
 MELSEC-Q/L Structured Programming Manual (Common Instructions)
Program example
■EXPT(_E)
The program which performs exponentiation and outputs the operation result from (d) in the same data type as that of (s1)
and (s2).
• Function without EN/ENO (EXPT)
[Structured ladder/FBD]
[ST]
g_real2:= EXPT(g_real1, g_int1);
• Function with EN/ENO (EXPT_E)
[Structured ladder/FBD]
[ST]
g_bool3 := EXPT_E(g_bool1, g_real1, g_int1, g_real2);
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
Common instruction used
LOG, FLT
LOG, DFLT
LOG
LOGD, DFLTD
LOGD
LOGD, FLTD
LOGD, DFLTD
LOGD
5 APPLICATION FUNCTIONS
5.3 Standard Arithmetic Functions
5
137

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents