EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 641

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
639
7
Program example
The following program seeks the natural logarithm of the value "10" set by D50, and stores the result at D30 and D31.
[Ladder Mode]
[List Mode]
[Operation]
Sets data used for natural
logarithm operation ( )
Converts the operation data
into a 32-bit floating-point real number ( )
Executes natural logarithm operation ( )
1
2
3
Step Instruction Device
D50
10
MOV
b15 b0
BIN value
10
Conversion to
floating-point
FLT
LOG operation
D41
D40
LOG
D31
D30
32-bit floating-point
real number
32-bit floating-point
real number
1
0 2
.
3 0 2 585
1
2
3

Table of Contents

Related product manuals