A - 11 A - 11
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.4 Double precision integer type (DINT) Boolean type (BOOL) conversion ..... DINT_TO_BOOL (_E) . 6- 6
6.1.5 Double precision integer type (DINT) integer type (INT) conversion ...... DINT_TO_INT (_E) ...... 6- 7
6.1.6 Double precision integer type (DINT) real number type
(REAL) conversion .................................................................................... DINT_TO_REAL (_E) .. 6- 8
6.1.7 Double precision integer type (DINT) character string type
(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.11 Integer type (INT) character string type (STRING) conversion ............. INT_TO_STR (_E) ....... 6-13
6.1.12 Real number type (REAL) double precision integer type
(DINT) conversion ................................................................................... REAL_TO_DINT (_E) .. 6-14
6.1.13 Real number type (REAL) integer type (INT) conversion ...................... REAL_TO_INT (_E) ..... 6-15
6.1.14 Real number type (REAL) character string type
(STRING) conversion ............................................................................. REAL_TO_STR (_E) ... 6-16
6.1.15 Character string type (STRING) Boolean type (BOOL) conversion ...... STR_TO_BOOL (_E) ... 6-17
6.1.16 Character string type (STRING) double precision integer type
(DINT) conversion ................................................................................... STR_TO_DINT (_E) .... 6-18
6.1.17 Character string type (STRING) integer type (INT) conversion ............ STR_TO_INT (_E) ....... 6-19
6.1.18 Character string type (STRING) real number type
(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.4.4 Floating-point SIN
-1
operation ................................................................... ASIN (_E) ..................... 6-28
6.4.5 Floating-point COS
-1
operation ................................................................. ACOS (_E) ................... 6-29
6.4.6 Floating-point TAN
-1
operation .................................................................. ATAN (_E) .................... 6-30
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
Summary of Contents for MELSEC L series
Page 1: ...Programming Manual Structured Text ...
Page 2: ......
Page 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Page 297: ......