Mitsubishi Electric MELSEC Q Series Programming Manual page 13

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.1.2 Boolean type (BOOL) integer type (INT) conversion ............................... BOOL_TO_INT (_E) .... 6- 4
6.1.3 Boolean type (BOOL) character string type (STRING) conversion ......... BOOL_TO_STR (_E) ... 6- 5
6.1.5 Double precision integer type (DINT) integer type (INT) conversion ...... DINT_TO_INT (_E) ...... 6- 7
(STRING) conversion ......................................................................................... DINT_TO_STR (_E) .... 6- 9
6.1.8 Integer type (INT) Boolean type (BOOL) conversion ............................... INT_TO_BOOL (_E) .... 6-10
6.1.9 Integer type (INT) double precision integer type (DINT) conversion ....... INT_TO_DINT (_E) ...... 6-11
6.1.10 Integer type (INT) real number type (REAL) conversion ....................... INT_TO_REAL (_E) ..... 6-12
6.1.13 Real number type (REAL) integer type (INT) conversion ...................... REAL_TO_INT (_E) ..... 6-15
(REAL) conversion .................................................................................. STR_TO_REAL (_E) ... 6-20
6.2 Numerical Functions (General Functions) .............................................................................................. 6-21
6.2.1 Absolute value ........................................................................................... ABS (_E) ...................... 6-21
6.2.2 Square root ................................................................................................ SQRT (_E) ................... 6-22
6.3 Numeric Functions (Logarithm Functions) .............................................................................................. 6-23
6.3.1 Natural logarithm ....................................................................................... LN (_E) ......................... 6-24
6.3.2 Natural exponent ....................................................................................... EXP (_E) ...................... 6-24
6.4 Numerical Functions (Trigonometric Functions) ..................................................................................... 6-25
6.4.1 Floating-point SIN operation ..................................................................... SIN (_E) ........................ 6-25
6.4.2 Floating-point COS operation ................................................................... COS (_E) ...................... 6-26
6.4.3 Floating-point TAN operation .................................................................... TAN (_E) ...................... 6-27
6.5 Arithmetic Operation Functions ............................................................................................................... 6-31
6.5.1 Addition ...................................................................................................... ADD_E ......................... 6-31
6.5.2 Multiplication .............................................................................................. MUL_E ......................... 6-32
6.5.3 Subtraction ................................................................................................ SUB_E .......................... 6-33
6.5.4 Division ...................................................................................................... DIV_E ........................... 6-34
6.5.5 Modulus operation ..................................................................................... MOD (_E) ..................... 6-35
6.5.6 Natural exponential ................................................................................... EXPT (_E) .................... 6-36
6.5.7 Assignment ................................................................................................ MOVE (_E) ................... 6-38
6.6 Bit Shift Functions .................................................................................................................................... 6-39
6.6.1 Bit left shift ................................................................................................. SHL (_E) ....................... 6-39
6.6.2 Bit right shift ............................................................................................... SHR (_E) ...................... 6-40
6.6.3 Right rotation ............................................................................................. ROR (_E)...................... 6-41
A - 11
-1
-1
-1
A - 11

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents