Mitsubishi MELSEC Q Series Programming Manual page 672

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

LOGD(P)
Program Example
(1) 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]
Step
[Operation]
10
7-298
Instruction
Device
2
Conversion to
D50
1
b15
b0
floating-point
10
MOV
BIN value
FLTD
Sets data used for natural logarithm
operation (
).
1
Converts the operation data into a 64-bit
floating-point real number (
2
Executes natural logarithm operation (
D43 D42
D41
D40
LOG operation
3
10
LOGD
64-bit floating-point
real number
).
).
3
D33 D32
D31
D30
2.302585
64-bit floating-point
real number

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents