EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 643

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.12 Special Function Instructions
641
7
Program example
The following program seeks the natural logarithm of the value "10" set by D50, and stores the result at D30 to D33.
[Ladder Mode]
[List Mode]
[Operation]
Sets data used for natural logarithm
operation ( ).
Converts the operation data into a 64-bit
floating-point real number ( ).
Executes natural logarithm operation ( ).
1
2
3
Step Instruction Device
10
64-bit floating-point
real number
64-bit floating-point
real number
D50
MOV
b15 b0
BIN value
10
Conversion to
floating-point
FLTD
LOG operation
LOGD
D41
10
D40D43 D42
D31
2.302585
D30D33 D32
1
2
3

Table of Contents

Related product manuals